From 9f0b671d4269b439c2b66988ca124ebab3355a16 Mon Sep 17 00:00:00 2001 From: hanhh <18330117883@163.com> Date: Tue, 17 Aug 2021 22:06:04 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E6=89=8B=E5=8A=A8=E8=BF=90?= =?UTF-8?q?=E8=A1=8C=E4=BB=BB=E5=8A=A1=E8=BF=9B=E7=A8=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- back/services/cron.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/back/services/cron.ts b/back/services/cron.ts index 6dba7d0d..fc41d3f0 100644 --- a/back/services/cron.ts +++ b/back/services/cron.ts @@ -246,7 +246,7 @@ export default class CronService { cmdStr = `${cmdStr} now`; } - const cp = spawn(cmdStr, { shell: '/bin/bash', detached: true }); + const cp = spawn(cmdStr, { shell: '/bin/bash' }); this.cronDb.update( { _id }, { $set: { status: CrontabStatus.running, pid: cp.pid } },