oil-station/fuintBackend/sbin/restart.sh
2023-10-09 11:12:49 +08:00

9 lines
177 B
Bash

#!/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