apply 'restartIfChanged = false' to all libvirtd services
Although it is quite safe to restart ```libvirtd``` when there are only ```qemu``` machines, in case if there are ```libvirt_lxc``` containers, a restart may result in putting the whole system into an odd state: the containers go on running but the new ```libvirtd``` daemons do not see them.
This commit is contained in:
parent
2dddc6dcf6
commit
15351c4780
@ -168,8 +168,9 @@ in {
|
|||||||
serviceConfig = {
|
serviceConfig = {
|
||||||
Type = "notify";
|
Type = "notify";
|
||||||
KillMode = "process"; # when stopping, leave the VMs alone
|
KillMode = "process"; # when stopping, leave the VMs alone
|
||||||
Restart = "on-failure";
|
Restart = "no";
|
||||||
};
|
};
|
||||||
|
restartIfChanged = false;
|
||||||
};
|
};
|
||||||
|
|
||||||
systemd.services.libvirt-guests = {
|
systemd.services.libvirt-guests = {
|
||||||
@ -187,6 +188,7 @@ in {
|
|||||||
systemd.services.virtlogd = {
|
systemd.services.virtlogd = {
|
||||||
description = "Virtual machine log manager";
|
description = "Virtual machine log manager";
|
||||||
serviceConfig.ExecStart = "@${pkgs.libvirt}/sbin/virtlogd virtlogd";
|
serviceConfig.ExecStart = "@${pkgs.libvirt}/sbin/virtlogd virtlogd";
|
||||||
|
restartIfChanged = false;
|
||||||
};
|
};
|
||||||
|
|
||||||
systemd.sockets.virtlockd = {
|
systemd.sockets.virtlockd = {
|
||||||
@ -198,6 +200,7 @@ in {
|
|||||||
systemd.services.virtlockd = {
|
systemd.services.virtlockd = {
|
||||||
description = "Virtual machine lock manager";
|
description = "Virtual machine lock manager";
|
||||||
serviceConfig.ExecStart = "@${pkgs.libvirt}/sbin/virtlockd virtlockd";
|
serviceConfig.ExecStart = "@${pkgs.libvirt}/sbin/virtlockd virtlockd";
|
||||||
|
restartIfChanged = false;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user