From 1f565b31da2d241034fe4373b9756834dd3a64b1 Mon Sep 17 00:00:00 2001 From: whyour Date: Mon, 3 May 2021 21:54:09 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E5=AE=9A=E6=97=B6=E4=BB=BB?= =?UTF-8?q?=E5=8A=A1=E9=87=8D=E5=90=AFschedule?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- back/services/cron.ts | 1 + sample/config.sample.sh | 3 +-- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/back/services/cron.ts b/back/services/cron.ts index da084bab..61559186 100644 --- a/back/services/cron.ts +++ b/back/services/cron.ts @@ -208,6 +208,7 @@ export default class CronService { fs.writeFileSync(config.crontabFile, crontab_string); execSync(`crontab ${config.crontabFile}`); + execSync(`pm2 restart schedule`); this.cronDb.update({}, { $set: { saved: true } }, { multi: true }); } diff --git a/sample/config.sample.sh b/sample/config.sample.sh index 960d56fb..94996920 100644 --- a/sample/config.sample.sh +++ b/sample/config.sample.sh @@ -98,8 +98,7 @@ AutoAddCron="true" ## 在crontab.list中,除掉每小时上述时间启动的任务外,其他任务在你定义了 RandomDelay 的情况下,一律启用随机延迟,但如果你给某些任务添加了 "now" 或者 "conc",那么这些任务也将无视随机延迟直接启动 RandomDelay="300" -## 如果你自己会写shell脚本,并且希望在每次运行 update 命令时,额外运行你的 shell 脚本,请赋值为 "true" -## 同时,请务必将你的脚本命名为 extra.sh (只能叫这个文件名),放在 config 目录下 +## 如果你自己会写shell脚本,并且希望在每次运行 ql update 命令时,额外运行你的 shell 脚本,请赋值为 "true" EnableExtraShell="" ## 自动按顺序进行账号间互助(选填) 设置为 true 时,将直接导入code最新日志来进行互助