[Unit]
Description=Reconcile harness agent seats left behind by a buildbox reboot or crash
Documentation=file:%h/.rb/seat-reconcile.sh
# The mirror trees this rescues live on local disk; nothing here needs the network.
After=basic.target

[Service]
Type=oneshot
RemainAfterExit=yes
ExecStart=%h/.rb/seat-reconcile.sh boot
# Recovery must never be the reason a box comes up unusable.
TimeoutStartSec=300
# The transport's own mirror guard repeats the pass, so a failed run here is not fatal.
SuccessExitStatus=0 1

[Install]
WantedBy=default.target
