修复了重复运行./run.sh start 问题

This commit is contained in:
lizhifeng
2022-04-19 22:07:36 +08:00
parent f05464ec79
commit 0d85eecb06
2 changed files with 16 additions and 6 deletions

View File

@ -35,13 +35,15 @@ EXECUTABLE=ruoyi.sh
case "$1" in
start)
exec "$PRGDIR"/"$EXECUTABLE" start "$@"
echo "Starting Ruoyi ... "
exec "$PRGDIR"/"$EXECUTABLE" start "$@"
;;
stop)
echo "Stoping Ruoyi ... "
exec "$PRGDIR"/"$EXECUTABLE" stop "$@"
echo "Stoping Ruoyi"
;;
*)