mirror of
https://github.com/xen-project/xen.git
synced 2026-10-28 02:01:24 +01:00
On a system with systemd the xenstore sockets are created via systemd. Remove the related configuration files in order to be able to decide at runtime whether the sockets should be created or not. This will enable Xen to start xenstore either via a daemon or via a stub domain. As the xenstore domain start program will exit after it has done its job prepare the same behaviour to be tolerated by systemd for the xenstore daemon by specifying the appropriate flags in the service file. A rerun of autogen.sh is required. Signed-off-by: Juergen Gross <jgross@suse.com> Acked-by: Wei Liu <wei.liu2@citrix.com> Acked-by: David Scott <dave@recoil.org>
26 lines
736 B
Plaintext
26 lines
736 B
Plaintext
[Unit]
|
|
Description=The Xen xenstore
|
|
Requires=proc-xen.mount var-lib-xenstored.mount
|
|
After=proc-xen.mount var-lib-xenstored.mount
|
|
Before=libvirtd.service libvirt-guests.service
|
|
RefuseManualStop=true
|
|
ConditionPathExists=/proc/xen/capabilities
|
|
|
|
[Service]
|
|
Type=notify
|
|
NotifyAccess=all
|
|
RemainAfterExit=true
|
|
KillMode=none
|
|
Environment=XENSTORED_ARGS=
|
|
Environment=XENSTORED=@XENSTORED@
|
|
EnvironmentFile=-@CONFIG_DIR@/@CONFIG_LEAF_DIR@/xencommons
|
|
ExecStartPre=/bin/grep -q control_d /proc/xen/capabilities
|
|
ExecStartPre=-/bin/rm -f @XEN_LIB_STORED@/tdb*
|
|
ExecStartPre=/bin/mkdir -p @XEN_RUN_DIR@
|
|
ExecStart=/bin/sh -c "exec $XENSTORED --no-fork $XENSTORED_ARGS"
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|
|
Also=proc-xen.mount
|
|
Also=var-lib-xenstored.mount
|