feat: implement ProcessManager service for managing child processes and logging
This commit is contained in:
@@ -104,7 +104,6 @@ export class ProcessManager {
|
|||||||
this.addLog(name, `Starting service with: ${binPath} ${args.join(' ')}`)
|
this.addLog(name, `Starting service with: ${binPath} ${args.join(' ')}`)
|
||||||
|
|
||||||
const child = spawn(binPath, args, {
|
const child = spawn(binPath, args, {
|
||||||
detached: true,
|
|
||||||
shell: shell,
|
shell: shell,
|
||||||
windowsHide: true,
|
windowsHide: true,
|
||||||
stdio: ['ignore', 'pipe', 'pipe'],
|
stdio: ['ignore', 'pipe', 'pipe'],
|
||||||
@@ -131,7 +130,6 @@ export class ProcessManager {
|
|||||||
})
|
})
|
||||||
|
|
||||||
this.processes.set(name, child)
|
this.processes.set(name, child)
|
||||||
child.unref()
|
|
||||||
|
|
||||||
return true
|
return true
|
||||||
} catch (error: any) {
|
} catch (error: any) {
|
||||||
|
|||||||
Reference in New Issue
Block a user