Server/sbin/restart.sh

9 lines
177 B
Bash
Raw Normal View History

2024-08-03 11:59:21 +00:00
#!/bin/sh
workdir=$(cd `dirname $0`;pwd)
cd $workdir || (echo "change to $workdir failed" && exit 1)
./stop.sh || { echo "stop server failed" && exit 1; }
sleep 1
./start.sh