nixos/vms: Use systemd Wants=
instead of Requires=
This commit is contained in:
parent
6f24632866
commit
dfaf98a418
@ -262,7 +262,9 @@ in
|
|||||||
in
|
in
|
||||||
{
|
{
|
||||||
description = "Virtual machine '${n}'";
|
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;
|
after = dependencies;
|
||||||
serviceConfig = {
|
serviceConfig = {
|
||||||
ExecStop = mkIf i.cleanShutdown.enabled "${doCleanShutdown} /run/vms/${n}/monitor-qmp.sock";
|
ExecStop = mkIf i.cleanShutdown.enabled "${doCleanShutdown} /run/vms/${n}/monitor-qmp.sock";
|
||||||
|
Loading…
Reference in New Issue
Block a user