BaihuBaihu
CLI

service

OS service management

usage

baihu service install
baihu service start
baihu service stop
baihu service uninstall

platforms

macOS (launchd)

installs a launchd plist at ~/Library/LaunchAgents/com.baihu.daemon.plist. runs as your user, starts on login.

linux (systemd)

installs a systemd user unit at ~/.config/systemd/user/baihu.service. enable with:

baihu service install
systemctl --user enable baihu
systemctl --user start baihu

windows

use task scheduler or run the daemon manually. native service support is on the roadmap.

logs

# macOS
log show --predicate 'subsystem == "com.baihu.daemon"' --last 1h

# linux
journalctl --user -u baihu -f

On this page