Files
xen/tools/hotplug/Linux/systemd/xendomains.service.in
T
Olaf Hering 4542ae340d tools/hotplug: systemd xenstored dependencies
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>
2014-10-27 10:13:57 +00:00

17 lines
476 B
Plaintext

[Unit]
Description=Xendomains - start and stop guests on boot and shutdown
Requires=xenstored.socket
After=xenstored.socket xenconsoled.service xen-init-dom0.service
ConditionPathExists=/proc/xen/capabilities
[Service]
Type=oneshot
RemainAfterExit=true
ExecStartPre=/bin/grep -q control_d /proc/xen/capabilities
ExecStart=-@LIBEXEC_BIN@/xendomains start
ExecStop=@LIBEXEC_BIN@/xendomains stop
ExecReload=@LIBEXEC_BIN@/xendomains restart
[Install]
WantedBy=multi-user.target