mirror of
https://github.com/whyour/qinglong.git
synced 2025-07-27 14:46:06 +08:00
pm2 restart替换成reload
This commit is contained in:
parent
143488dfb6
commit
082acc2fb5
|
@ -209,7 +209,7 @@ export default class CronService {
|
|||
fs.writeFileSync(config.crontabFile, crontab_string);
|
||||
|
||||
execSync(`crontab ${config.crontabFile}`);
|
||||
exec(`pm2 restart schedule`);
|
||||
exec(`pm2 reload schedule`);
|
||||
this.cronDb.update({}, { $set: { saved: true } }, { multi: true });
|
||||
}
|
||||
|
||||
|
|
|
@ -19,12 +19,12 @@ echo -e "nginx启动成功...\n"
|
|||
|
||||
echo -e "======================4. 启动控制面板========================\n"
|
||||
cd $dir_root
|
||||
pm2 restart panel 2>/dev/null || pm2 start $dir_root/build/app.js -n panel
|
||||
pm2 reload panel 2>/dev/null || pm2 start $dir_root/build/app.js -n panel
|
||||
echo -e "控制面板启动成功...\n"
|
||||
|
||||
echo -e "======================5. 启动定时任务========================\n"
|
||||
cd $dir_root
|
||||
pm2 restart schedule 2>/dev/null || pm2 start $dir_root/build/schedule.js -n schedule
|
||||
pm2 reload schedule 2>/dev/null || pm2 start $dir_root/build/schedule.js -n schedule
|
||||
echo -e "定时任务启动成功...\n"
|
||||
|
||||
echo -e "############################################################"
|
||||
|
|
|
@ -326,12 +326,12 @@ restart_qinglong() {
|
|||
echo -e "重新编译青龙完成...\n"
|
||||
|
||||
echo -e "重启青龙面板...\n"
|
||||
pm2 restart panel 2>/dev/null || pm2 start $dir_root/build/app.js -n panel
|
||||
pm2 reload panel 2>/dev/null || pm2 start $dir_root/build/app.js -n panel
|
||||
nginx -s reload 2>/dev/null || nginx -c /etc/nginx/nginx.conf
|
||||
echo -e "重启面板完成...\n"
|
||||
|
||||
echo -e "重启定时任务...\n"
|
||||
pm2 restart schedule 2>/dev/null || pm2 start $dir_root/build/schedule.js -n schedule
|
||||
pm2 reload schedule 2>/dev/null || pm2 start $dir_root/build/schedule.js -n schedule
|
||||
echo -e "重启定时完成...\n"
|
||||
fi
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user