fix(daemon): Fix daemon IPC id handling, reload configs on demand and correct CLI daemon start path
This commit is contained in:
@@ -33,7 +33,8 @@ export function registerDaemonCommand(smartcli: plugins.smartcli.Smartcli) {
|
||||
const daemonScript = plugins.path.join(
|
||||
paths.packageDir,
|
||||
'dist_ts',
|
||||
'daemon.js',
|
||||
'daemon',
|
||||
'tspm.daemon.js',
|
||||
);
|
||||
|
||||
// Start daemon as a detached background process
|
||||
|
@@ -52,6 +52,8 @@ export const run = async (): Promise<void> => {
|
||||
} else {
|
||||
console.log('Daemon: not running');
|
||||
}
|
||||
// Ensure we disconnect any IPC client connection used for status
|
||||
try { await tspmIpcClient.disconnect(); } catch {}
|
||||
return; // do not start parser
|
||||
}
|
||||
// Keep Smartcli version info for help output but not used for -v now
|
||||
|
Reference in New Issue
Block a user