Skip to main content

System Service (Auto-Start on Boot)

Install Mercury as a system service so it starts automatically on boot and restarts on crash.

mercury service install

This detects your platform and generates the appropriate service config.

PlatformMethodRequires AdminAuto-StartCrash Recovery
macOSLaunchAgent plistNoOn loginKeepAlive (restart on crash)
Linuxsystemd user unitNo*On loginRestart=on-failure, 5s delay
WindowsTask Scheduler (schtasks)NoOn logonBuilt-in watchdog

*Linux boot-without-login requires loginctl enable-linger $USER (one-time, needs sudo).

Other service commands

mercury service status
mercury service uninstall