mirror of
https://github.com/whyour/qinglong.git
synced 2025-05-23 23:06:06 +08:00
修改spawn参数
This commit is contained in:
parent
1f42d0245c
commit
dac694776d
|
@ -211,7 +211,7 @@ export default class CronService {
|
|||
cmdStr = `${cmdStr} now`;
|
||||
}
|
||||
|
||||
const cp = spawn(cmdStr, { shell: true, detached: true });
|
||||
const cp = spawn(cmdStr, { shell: '/bin/bash' });
|
||||
this.cronDb.update(
|
||||
{ _id },
|
||||
{ $set: { status: CrontabStatus.running, pid: cp.pid } },
|
||||
|
|
Loading…
Reference in New Issue
Block a user