nixos/incus: fix incus containers being wrongly restarted on package update whilst softDaemonRestart is set (#539440)
This commit is contained in:
@@ -446,6 +446,8 @@ in
|
||||
]
|
||||
++ lib.optionals (cfg.useACMEHost != null) [ "acme-${cfg.useACMEHost}.service" ];
|
||||
|
||||
stopIfChanged = lib.mkIf cfg.softDaemonRestart false;
|
||||
|
||||
serviceConfig = {
|
||||
ExecStart = "${cfg.package}/bin/incusd --group incus-admin";
|
||||
ExecStartPost = "${cfg.package}/bin/incusd waitready --timeout=${cfg.startTimeout}";
|
||||
@@ -504,6 +506,7 @@ in
|
||||
|
||||
# restarting this service will affect instances
|
||||
restartIfChanged = false;
|
||||
stopIfChanged = false;
|
||||
|
||||
serviceConfig = {
|
||||
ExecStart = "${incus-startup} start";
|
||||
|
||||
Reference in New Issue
Block a user