diff options
author | Peter Hoeg <peter@hoeg.com> | 2018-11-01 23:39:37 +0800 |
---|---|---|
committer | Robert Schütz <rschuetz17@gmail.com> | 2018-11-01 16:39:37 +0100 |
commit | db1a40a882987f94f8580b2b219a5857a3789a77 (patch) | |
tree | 1be4d97e8ec7e8913c1b8935489b57931dadc789 /nixos | |
parent | 7b5a3294493b3e983d7cb5d5c5347999dc7d4092 (diff) | |
download | nixlib-db1a40a882987f94f8580b2b219a5857a3789a77.tar nixlib-db1a40a882987f94f8580b2b219a5857a3789a77.tar.gz nixlib-db1a40a882987f94f8580b2b219a5857a3789a77.tar.bz2 nixlib-db1a40a882987f94f8580b2b219a5857a3789a77.tar.lz nixlib-db1a40a882987f94f8580b2b219a5857a3789a77.tar.xz nixlib-db1a40a882987f94f8580b2b219a5857a3789a77.tar.zst nixlib-db1a40a882987f94f8580b2b219a5857a3789a77.zip |
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.
Diffstat (limited to 'nixos')
-rw-r--r-- | nixos/modules/services/misc/home-assistant.nix | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/nixos/modules/services/misc/home-assistant.nix b/nixos/modules/services/misc/home-assistant.nix index 0756e81612ac..2e9aa33aeeee 100644 --- a/nixos/modules/services/misc/home-assistant.nix +++ b/nixos/modules/services/misc/home-assistant.nix @@ -157,6 +157,7 @@ in { Restart = "on-failure"; ProtectSystem = "strict"; ReadWritePaths = "${cfg.configDir}"; + KillSignal = "SIGINT"; PrivateTmp = true; RemoveIPC = true; }; |