mirror of
https://github.com/whyour/qinglong.git
synced 2025-05-29 11:19:34 +08:00
修复手动运行任务进程
This commit is contained in:
parent
7de7c724dc
commit
9f0b671d42
|
@ -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 } },
|
||||
|
|
Loading…
Reference in New Issue
Block a user