mirror of
https://github.com/hanzoai/cli.git
synced 2026-10-30 15:00:27 +00:00
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]>
25 lines
850 B
Desktop File
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
|