0
0
Fork 0
mirror of https://github.com/NixOS/nixpkgs.git synced 2025-07-13 13:40:28 +03:00

nixos/incus: shutdown instances on service stop

This commit is contained in:
Adam Stephens 2023-10-31 08:34:57 -04:00
parent 3087595a6b
commit 3132ba6cda
No known key found for this signature in database

View file

@ -166,6 +166,7 @@ in
serviceConfig = {
ExecStart = "${cfg.package}/bin/incusd --group incus-admin";
ExecStartPost = "${cfg.package}/bin/incusd waitready --timeout=${cfg.startTimeout}";
ExecStop = "${cfg.package}/bin/incus admin shutdown";
KillMode = "process"; # when stopping, leave the containers alone
Delegate = "yes";