nixos/vms: Use systemd Wants= instead of Requires=

This commit is contained in:
Jack O'Sullivan 2023-01-07 18:02:15 +00:00
parent 6f24632866
commit dfaf98a418

View File

@ -262,7 +262,9 @@ in
in
{
description = "Virtual machine '${n}'";
requires = dependencies;
# Use `Wants=` instead of `Requires=`. Otherwise restarting the wait-online services will cause the VM to
# restart as well.
wants = dependencies;
after = dependencies;
serviceConfig = {
ExecStop = mkIf i.cleanShutdown.enabled "${doCleanShutdown} /run/vms/${n}/monitor-qmp.sock";