|
|
@@ -86,6 +86,27 @@ npm run dev # Start with auto-reload (--watch flag)
|
|
|
node examples/with-callbacks.js # Run callback example
|
|
|
```
|
|
|
|
|
|
+## System Management (Production)
|
|
|
+
|
|
|
+The agent-manager service runs as a systemd service on the production system.
|
|
|
+
|
|
|
+**Restart the service:**
|
|
|
+```bash
|
|
|
+sudo /bin/systemctl restart agent-manager
|
|
|
+```
|
|
|
+
|
|
|
+**Check service status:**
|
|
|
+```bash
|
|
|
+sudo /bin/systemctl status agent-manager
|
|
|
+```
|
|
|
+
|
|
|
+**View service logs:**
|
|
|
+```bash
|
|
|
+sudo journalctl -u agent-manager -f
|
|
|
+```
|
|
|
+
|
|
|
+**Note**: The `claude` user has passwordless sudo access to restart the agent-manager service via `/etc/sudoers.d/50-agent-manager` configuration.
|
|
|
+
|
|
|
**Testing endpoints:**
|
|
|
```bash
|
|
|
curl http://localhost:3000/health
|