调试脚本增加停止,修复调试交互

This commit is contained in:
whyour committed 2021-12-23 23:25:39 +08:00
1 parent a29392bb08
commit 2e6ca5419d
4 files changed
+87 -12

No files matched your search

+1 -1
View File
@@ -241,7 +241,7 @@ export default class CronService {
});
}
private async killTask(name: string) {
public async killTask(name: string) {
let taskCommand = `ps -ef | grep "${name}" | grep -v grep | awk '{print $1}'`;
const execAsync = promisify(exec);
try {