Platform-Specific Guide
- macOS
- Linux
- Windows
mercury service install creates a LaunchAgent at ~/Library/LaunchAgents/com.cosmicstack.mercury.plist.
- Auto-start: Loads on login via
launchctl load - Crash recovery:
KeepAlive SuccessfulExit = falserestarts on crash - No sudo needed: User-level LaunchAgent, not system daemon
- Logs:
~/.mercury/daemon.logand~/.mercury/daemon-error.log
Manual management
launchctl load ~/Library/LaunchAgents/com.cosmicstack.mercury.plist
launchctl unload ~/Library/LaunchAgents/com.cosmicstack.mercury.plist
mercury service install creates a systemd user unit at ~/.config/systemd/user/mercury.service.
- Auto-start: Enabled via
systemctl --user enable mercury.service - Crash recovery:
Restart=on-failurewith 5s delay - No sudo needed: User-level service
- Boot without login: Run
sudo loginctl enable-linger $USERonce - Logs:
~/.mercury/daemon.logorjournalctl --user -u mercury
Manual management
systemctl --user start mercury
systemctl --user status mercury
systemctl --user stop mercury
mercury service install creates a Windows Task Scheduler task named MercuryAgent.
- Auto-start: Triggers on user logon via
schtasks - Crash recovery: Built-in watchdog with exponential backoff
- No admin needed: Runs with limited privileges (
/rl limited) - Logs:
%USERPROFILE%\.mercury\daemon.log
Manual management
schtasks /query /tn "MercuryAgent" /fo list
schtasks /run /tn "MercuryAgent"
schtasks /delete /tn "MercuryAgent" /f
Docker Status
Mercury does not currently ship first-party Docker assets in this repository (no Dockerfile or docker-compose.yml by default).
If you run Mercury in a container, treat it as an advanced/custom deployment:
- Prefer foreground mode (
mercury start --foreground) inside the container - Let the container runtime handle restart policy
- Mount
~/.mercuryas persistent storage - Validate terminal/TTY behavior separately for interactive CLI usage