Skip to content

service

snippbot start runs the server in the foreground. To keep it running across reboots and restart it if it crashes, run it under your operating system’s process supervisor. snippbot service installs a user-level service that does this — without elevation. On Linux/macOS no root/sudo is required; on Windows it installs a per-user Startup-folder launcher that starts the daemon hidden at logon, so no Administrator rights are needed either.

It picks the right mechanism for your platform automatically:

OSMechanismLocation
Linuxsystemd user unit~/.config/systemd/user/snippbot.service
macOSlaunchd LaunchAgent~/Library/LaunchAgents/com.snippbot.daemon.plist
Windowsper-user Startup-folder launcher (hidden)%APPDATA%\Microsoft\Windows\Start Menu\Programs\Startup\Snippbot.vbs
Terminal window
snippbot service install # install + start, defaults host 127.0.0.1 port 18781
snippbot service install --host 0.0.0.0 --port 18781 # expose on the network
snippbot service install --data-dir /srv/snippbot # pin SNIPPBOT_DATA_DIR
snippbot service status # show whether it's running
snippbot service uninstall # stop + remove
  • Headless Linux: run loginctl enable-linger $USER so the user service runs without an active login session.
  • Logs: systemd → journalctl --user -u snippbot; launchd → ~/.snippbot/logs/.
  • The service runs snippbot start for you, so don’t also start the daemon manually.