Skip to content

Commit

Permalink
home-assistant: use SIGINT instead of SIGTERM to shut down
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
peterhoeg committed Nov 1, 2018
1 parent 7d24cf8 commit a44e642
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions nixos/modules/services/misc/home-assistant.nix
Expand Up @@ -157,6 +157,7 @@ in {
Restart = "on-failure";
ProtectSystem = "strict";
ReadWritePaths = "${cfg.configDir}";
KillSignal = "SIGINT";
PrivateTmp = true;
RemoveIPC = true;
};
Expand Down

0 comments on commit a44e642

Please sign in to comment.