nixos/zigbee2mqtt: add RestartSec

After a cold reboot, zigbee2mqtt didn't properly come up.
The logs showed it crashed too often too quickly, and then systemd
stopped trying to restart it due to rate-limiting.

It might be due to the network not being up yet, or the Zigbee
coordinator still booting.

Either way, with a RestartSec=10, it did come up.
This commit is contained in:
Florian Klink
2026-06-21 23:03:43 +03:00
parent 03d147c5ca
commit 39e3856dd8
@@ -84,6 +84,7 @@ in
StateDirectory = "zigbee2mqtt";
StateDirectoryMode = "0700";
Restart = "on-failure";
RestartSec = 10;
# Hardening
CapabilityBoundingSet = "";