From ea7572c4e91e6a24b068f89bbbeb5038c33b740a Mon Sep 17 00:00:00 2001 From: Inex Code Date: Fri, 29 Apr 2022 15:48:08 +0300 Subject: [PATCH] Prevent sending SIGKILL to rebuild service --- api/api-module.nix | 3 +++ 1 file changed, 3 insertions(+) diff --git a/api/api-module.nix b/api/api-module.nix index d67013f..9ee6fb5 100644 --- a/api/api-module.nix +++ b/api/api-module.nix @@ -93,6 +93,7 @@ in User = "root"; ExecStart = "${pkgs.nixos-rebuild}/bin/nixos-rebuild switch"; KillMode = "none"; + SendSIGKILL = "no"; }; }; # One shot systemd service to upgrade NixOS using nixos-rebuild @@ -107,6 +108,7 @@ in User = "root"; ExecStart = "${pkgs.nixos-rebuild}/bin/nixos-rebuild switch --upgrade"; KillMode = "none"; + SendSIGKILL = "no"; }; }; # One shot systemd service to rollback NixOS using nixos-rebuild @@ -121,6 +123,7 @@ in User = "root"; ExecStart = "${pkgs.nixos-rebuild}/bin/nixos-rebuild switch --rollback"; KillMode = "none"; + SendSIGKILL = "no"; }; }; };