diff --git a/env/app_monitor.sh b/env/app_monitor.sh index cdb6ea1..ead539f 100755 --- a/env/app_monitor.sh +++ b/env/app_monitor.sh @@ -8,7 +8,8 @@ while true; do if [ $? -ne 0 ]; then echo "app.out is not running, restart it" cd /app - ./app.sh + ./app.sh & + sleep 3 fi sleep 1 done