git.iko.soy/typeable/nixpkgs
on master help sign in
home-assistant: use SIGINT instead of SIGTERM to shut down (#49571)

hass will ignore the standard SIGTERM sent by systemd during stop/restart and we then have to wait for the timeout after which systemd will forcefully kill the process. If instead if we send SIGINT, hass will shut down nicely. There are many issues reported upstream about the inability to shut down/restart and it is *supposed* to work with SIGTERM but doesn't.

commitdb1a40a882987f94f8580b2b219a5857a3789a77 authorPeter Hoeg <peter@hoeg.com> dateThu 1 Nov 2018, 23:39 (8 years ago) parent7b5a329
1 file changed+1
nixos/modules/services/misc/home-assistant.nix+1
nixos/modules/services/misc/home-assistant.nix+1
@@ -157,6 +157,7 @@ in {
157157 Restart = "on-failure";
158158 ProtectSystem = "strict";
159159 ReadWritePaths = "${cfg.configDir}";
160+ KillSignal = "SIGINT";
160161 PrivateTmp = true;
161162 RemoveIPC = true;
162163 };