mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-07-06 17:13:24 -05:00
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:
parent
03d147c5ca
commit
39e3856dd8
1 changed files with 1 additions and 0 deletions
|
|
@ -84,6 +84,7 @@ in
|
|||
StateDirectory = "zigbee2mqtt";
|
||||
StateDirectoryMode = "0700";
|
||||
Restart = "on-failure";
|
||||
RestartSec = 10;
|
||||
|
||||
# Hardening
|
||||
CapabilityBoundingSet = "";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue