]> xenbits.xensource.com Git - libvirt.git/commitdiff
libvirt-guests: Weaken dependency on libvirtd
authorAndrea Bolognani <abologna@redhat.com>
Fri, 7 Oct 2016 08:10:42 +0000 (10:10 +0200)
committerAndrea Bolognani <abologna@redhat.com>
Wed, 12 Oct 2016 13:45:01 +0000 (15:45 +0200)
The Requires relationship is very strong, in that it prevents
a unit from running unless all the units it Requires are
running as well.

This turns out to be a problem because we want to be able to
restart libvirtd at any time without having libvirt-guests
suspend or shutdown running guests.

Turn the Requires relationship into a Wants relationship:
this way starting libvirt-guests will cause systemd to (attempt
to) start libvirtd as well, but stopping or restarting libvirtd
will not alter libvirt-guests' running state.

tools/libvirt-guests.service.in

index b4f54f2be7840277d6e36740e5631d6654249e94..02e67471db0bc529f3be1f84053f553053bfb189 100644 (file)
@@ -1,6 +1,6 @@
 [Unit]
 Description=Suspend/Resume Running libvirt Guests
-Requires=libvirtd.service
+Wants=libvirtd.service
 After=network.target
 After=time-sync.target
 After=libvirtd.service