[Unit] Description=Novox Mesh node host After=network-online.target Wants=network-online.target # When the supervisor gives up, recover rather than leaving the node quiet — a host that will # not start looks exactly like a machine somebody switched off (novox/hq ADR 0059). OnFailure=nox-mesh-host-rollback.service [Service] Type=notify ExecStart=/usr/bin/nox-mesh-host run # always, NOT on-failure: the host restarts onto a new binary by exiting CLEANLY # (novox/hq ADR 0057), and on-failure would leave an upgraded node stopped. Restart=always RestartSec=5s StartLimitBurst=3 StartLimitIntervalSec=120 StateDirectory=mesh-host [Install] WantedBy=multi-user.target