nixos/deconz: treat SIGTERM exit status as success
deconz doesn't handle SIGTERM and terminates with code 143 (128 + 15 (SIGTERM) instead of 0. This results in systemd marking the service as failed when a user stops it (with `systemctl stop deconz`). Fix it by treating code 143 as success.
This commit is contained in:
@@ -122,6 +122,7 @@ in
|
|||||||
RuntimeDirectory = name;
|
RuntimeDirectory = name;
|
||||||
RuntimeDirectoryMode = "0700";
|
RuntimeDirectoryMode = "0700";
|
||||||
StateDirectory = name;
|
StateDirectory = name;
|
||||||
|
SuccessExitStatus = [ 143 ];
|
||||||
WorkingDirectory = stateDir;
|
WorkingDirectory = stateDir;
|
||||||
# For access to /dev/ttyACM0 (ConBee).
|
# For access to /dev/ttyACM0 (ConBee).
|
||||||
SupplementaryGroups = [ "dialout" ];
|
SupplementaryGroups = [ "dialout" ];
|
||||||
|
|||||||
Reference in New Issue
Block a user