Files
cli/units/hanzo-beat.service
zeekayandClaude Code 6625f6d692 Drop the systemd directive that is not a directive
RestartMode is the dual-boot knob, not a restart policy; an unknown line reads as
a broken unit on the box that installs it.

Co-Authored-By: Claude Code <[email protected]>
2026-09-23 19:10:06 -07:00

25 lines
850 B
Desktop File

# Keep this machine present in the fleet between sessions.
#
# systemctl --user enable --now units/hanzo-beat.service
# loginctl enable-linger $USER # beat at boot, before anyone logs in
#
# It runs the ONE beat that `hanzo code` and `hanzo link` already hold while they
# run — so a box at an idle prompt is not read offline by the console and by
# whatever is choosing where the next session lands. Nothing else: no shell, no
# session, one best-effort request every 30 seconds.
[Unit]
Description=Hanzo fleet presence
After=network-online.target
Wants=network-online.target
[Service]
ExecStart=%h/.local/bin/hanzo beat
Restart=always
RestartSec=30
# A beat that cannot reach the API changes nothing about this box, so never
# spin on it — the scheduler already reads the machine as offline.
Nice=19
[Install]
WantedBy=default.target