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:
@@ -84,6 +84,7 @@ in
|
||||
StateDirectory = "zigbee2mqtt";
|
||||
StateDirectoryMode = "0700";
|
||||
Restart = "on-failure";
|
||||
RestartSec = 10;
|
||||
|
||||
# Hardening
|
||||
CapabilityBoundingSet = "";
|
||||
|
||||
Reference in New Issue
Block a user