@openagents-org/agent-launcher 0.2.16 → 0.2.17
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/daemon.js +7 -0
package/package.json
CHANGED
package/src/daemon.js
CHANGED
|
@@ -569,11 +569,18 @@ class Daemon {
|
|
|
569
569
|
const cmd = line.trim();
|
|
570
570
|
if (cmd.startsWith('stop:')) {
|
|
571
571
|
const agentName = cmd.slice(5).trim();
|
|
572
|
+
this._log(`Command: stop ${agentName}`);
|
|
572
573
|
this.stopAgent(agentName);
|
|
574
|
+
} else if (cmd.startsWith('start:')) {
|
|
575
|
+
const agentName = cmd.slice(6).trim();
|
|
576
|
+
this._log(`Command: start ${agentName}`);
|
|
577
|
+
this.restartAgent(agentName);
|
|
573
578
|
} else if (cmd.startsWith('restart:')) {
|
|
574
579
|
const agentName = cmd.slice(8).trim();
|
|
580
|
+
this._log(`Command: restart ${agentName}`);
|
|
575
581
|
this.restartAgent(agentName);
|
|
576
582
|
} else if (cmd === 'reload') {
|
|
583
|
+
this._log('Command: reload');
|
|
577
584
|
this._reload();
|
|
578
585
|
}
|
|
579
586
|
}
|