mirror of
https://github.com/whyour/qinglong.git
synced 2025-05-22 22:36:06 +08:00
重启面板改为后台运行
This commit is contained in:
parent
b614d7ec7a
commit
e64f7f5426
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user