@synapta/daemon
v2.8.0
Published
Cross-platform background service installer for the Synapta gateway
Readme
@synapta/daemon
Cross-platform background-service installer for the Synapta gateway.
- macOS: per-user launchd
LaunchAgentplist at~/Library/LaunchAgents/com.synapta.gatewayd.plist.KeepAlived. - Linux: systemd-user unit at
~/.config/systemd/user/synapta-gatewayd.service.Restart=always. - Windows: scheduled task
SynaptaGatewaydtriggeredONLOGON(minimal first-pass).
The service points at the synapta-gatewayd shim (this package's bin) which re-resolves @synapta/gateway at every boot, so npm i -g synapta@<newer> doesn't require re-registering the service.
import { installDaemon, statusDaemon, uninstallDaemon } from '@synapta/daemon';
await installDaemon({ gatewayPort: 4823 });
await statusDaemon(); // 'running' | 'stopped' | 'missing'
await uninstallDaemon();Logs land at ~/.synapta/logs/gateway.log (+ .err.log). Tail via tailLogs(onLine).
