mirror of
https://github.com/xen-project/xen.git
synced 2026-10-29 18:50:05 +01:00
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>
17 lines
476 B
Plaintext
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
|