From 4e5069c929deabef9fc206b170a9bd9fd24a73f9 Mon Sep 17 00:00:00 2001 From: zhaohe Date: Tue, 28 Mar 2023 11:49:09 +0800 Subject: [PATCH] update app_monitor.sh --- env/app_monitor.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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