From 5aab6344c25cbe0a5070ab61701d76805ab86112 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B8rn=20Forsman?= Date: Sun, 7 Jul 2024 16:11:11 +0200 Subject: [PATCH] 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. --- nixos/modules/services/networking/deconz.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/nixos/modules/services/networking/deconz.nix b/nixos/modules/services/networking/deconz.nix index 88b0ee612d87..e023f8e866c0 100644 --- a/nixos/modules/services/networking/deconz.nix +++ b/nixos/modules/services/networking/deconz.nix @@ -122,6 +122,7 @@ in RuntimeDirectory = name; RuntimeDirectoryMode = "0700"; StateDirectory = name; + SuccessExitStatus = [ 143 ]; WorkingDirectory = stateDir; # For access to /dev/ttyACM0 (ConBee). SupplementaryGroups = [ "dialout" ];