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 } },