]> xenbits.xensource.com Git - xen.git/commitdiff
tools/hotplug: systemd xenstored dependencies
authorOlaf Hering <olaf@aepfle.de>
Fri, 24 Oct 2014 14:17:08 +0000 (16:17 +0200)
committerIan Campbell <ian.campbell@citrix.com>
Mon, 27 Oct 2014 10:13:57 +0000 (10:13 +0000)
Everything which uses xenstored does this via the socket. Update the
existing service files to enable the xenstored.socket with the Requires=
statement. And schedule startup of the given service files after the
socket is enabled with the After= statement.
Once something tries to access the socket systemd will launch xenstored.

Signed-off-by: Olaf Hering <olaf@aepfle.de>
Cc: Ian Campbell <ian.campbell@citrix.com>
Cc: Ian Jackson <ian.jackson@eu.citrix.com>
Cc: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
Cc: Wei Liu <wei.liu2@citrix.com>
Acked-by: Wei Liu <wei.liu2@citrix.com>
tools/hotplug/Linux/systemd/xen-init-dom0.service.in
tools/hotplug/Linux/systemd/xen-qemu-dom0-disk-backend.service.in
tools/hotplug/Linux/systemd/xenconsoled.service.in
tools/hotplug/Linux/systemd/xendomains.service.in

index e947760ee4d8f05c7f3217905181d5800074ac5e..3ed16336278251137fe35ce51f8009ae3e42ce3f 100644 (file)
@@ -1,7 +1,7 @@
 [Unit]
 Description=xen-init-dom0, initialise Dom0 configuration (xenstore nodes, JSON configuration stub)
 Requires=xenstored.socket
-After=xenstored.service
+After=xenstored.socket
 ConditionPathExists=/proc/xen/capabilities
 
 [Service]
index 52101af56abd79d457cc17e4b1bc127911460b50..0b9c2e5f4a7a5d6ff3ee40c8e29a64f60cb6b366 100644 (file)
@@ -1,7 +1,7 @@
 [Unit]
 Description=qemu for xen dom0 disk backend
 Requires=proc-xen.mount var-lib-xenstored.mount xenstored.socket
-After=xenstored.service xenconsoled.service
+After=xenstored.socket xenconsoled.service
 Before=xendomains.service libvirtd.service libvirt-guests.service
 RefuseManualStop=true
 ConditionPathExists=/proc/xen/capabilities
index 6ab0fc1a2f47595805092f6a858ab5ea7990f699..d3b85a5b6f03cd60bdfc96277d42390c851dcae1 100644 (file)
@@ -1,7 +1,7 @@
 [Unit]
 Description=Xenconsoled - handles logging from guest consoles and hypervisor
 Requires=xenstored.socket
-After=xenstored.service
+After=xenstored.socket
 ConditionPathExists=/proc/xen/capabilities
 
 [Service]
index 3ed48928c55c2c641e8b7820ef01a3e85992ad0c..214da7a2db11152d723c70047bcbd7ac8aa04d74 100644 (file)
@@ -1,7 +1,7 @@
 [Unit]
 Description=Xendomains - start and stop guests on boot and shutdown
 Requires=xenstored.socket
-After=xenstored.service xenconsoled.service xen-init-dom0.service
+After=xenstored.socket xenconsoled.service xen-init-dom0.service
 ConditionPathExists=/proc/xen/capabilities
 
 [Service]