nixos/incus: avoid restart on switch for incus-startup
This service exists to avoid extra instance restarts. While its dependencies are slim, there are still some, so disable restartIfChanged to avoid any switches from affecting instances.
This commit is contained in:
@@ -449,6 +449,9 @@ in
|
|||||||
requires = [ "incus.socket" ];
|
requires = [ "incus.socket" ];
|
||||||
wantedBy = config.systemd.services.incus.wantedBy;
|
wantedBy = config.systemd.services.incus.wantedBy;
|
||||||
|
|
||||||
|
# restarting this service will affect instances
|
||||||
|
restartIfChanged = false;
|
||||||
|
|
||||||
serviceConfig = {
|
serviceConfig = {
|
||||||
ExecStart = "${incus-startup} start";
|
ExecStart = "${incus-startup} start";
|
||||||
ExecStop = "${incus-startup} stop";
|
ExecStop = "${incus-startup} stop";
|
||||||
|
|||||||
Reference in New Issue
Block a user