We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7b59436 commit 2000ae3Copy full SHA for 2000ae3
bin/agenthub
@@ -132,7 +132,13 @@ function start(configPath) {
132
}
133
134
var appid = cfg.appid;
135
- var proc = spawn(agenthubBin, [configPath], {detached: true});
+ const logPath = path.join(os.homedir(), '.agenthub.log');
136
+ const out = fs.openSync(logPath, 'a');
137
+ const err = fs.openSync(logPath, 'a');
138
+ const proc = spawn(agenthubBin, [configPath], {
139
+ detached: true,
140
+ stdio: ['ipc', out, err]
141
+ });
142
console.log('agenthub has started(pid: %s).', proc.pid);
143
appendAgenthubStatus(appid, proc.pid, configPath);
144
process.exit(0);
0 commit comments