From e64f7f5426e211e58bbd1c4944ace36e22831ba4 Mon Sep 17 00:00:00 2001 From: whyour Date: Wed, 12 May 2021 15:22:27 +0800 Subject: [PATCH] =?UTF-8?q?=E9=87=8D=E5=90=AF=E9=9D=A2=E6=9D=BF=E6=94=B9?= =?UTF-8?q?=E4=B8=BA=E5=90=8E=E5=8F=B0=E8=BF=90=E8=A1=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- shell/update.sh | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/shell/update.sh b/shell/update.sh index 8754c2c3..ea8c27a7 100755 --- a/shell/update.sh +++ b/shell/update.sh @@ -255,13 +255,12 @@ update_qinglong() { fi if [[ $exit_status -eq 0 ]]; then - echo -e "重启青龙面板...\n" + echo -e "重启青龙面板(后台重启)...\n" cd $dir_root - pm2 reload panel 2>/dev/null || pm2 start $dir_root/build/app.js -n panel - - pm2 reload schedule 2>/dev/null || pm2 start $dir_root/build/schedule.js -n schedule + nohup pm2 reload panel >/dev/null 2>&1 & + nohup pm2 reload schedule >/dev/null 2>&1 & nginx -s reload 2>/dev/null || nginx -c /etc/nginx/nginx.conf - echo -e "重启面板完成...\n" + echo -e "重启面板完成(请刷新页面)...\n" fi }