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:
parent
3087595a6b
commit
3132ba6cda
1 changed files with 1 additions and 0 deletions
|
@ -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";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue