2013-06-04 17:11:10 +02:00
|
|
|
[Unit]
|
|
|
|
Description=Xenstored - daemon managing xenstore file system
|
|
|
|
Requires=proc-xen.mount var-lib-xenstored.mount systemd-tmpfiles-setup.service
|
|
|
|
After=proc-xen.mount var-lib-xenstored.mount systemd-tmpfiles-setup.service
|
|
|
|
Before=libvirtd.service libvirt-guests.service
|
|
|
|
RefuseManualStop=true
|
|
|
|
ConditionPathExists=/proc/xen
|
|
|
|
|
|
|
|
[Service]
|
|
|
|
Type=forking
|
|
|
|
Environment=XENSTORED_ARGS=
|
|
|
|
PIDFile=/var/run/xenstored.pid
|
|
|
|
ExecStartPre=/usr/bin/grep -q control_d /proc/xen/capabilities
|
2013-06-04 17:32:55 +02:00
|
|
|
ExecStart=/usr/bin/xenstored --pid-file /var/run/xenstored.pid $XENSTORED_ARGS
|
2014-03-10 15:41:01 +01:00
|
|
|
ExecStartPost=/usr/bin/xenstore-write "/local/domain/0/domid" 0
|
2013-06-04 17:11:10 +02:00
|
|
|
ExecStartPost=/usr/bin/xenstore-write "/local/domain/0/name" "Domain-0"
|
|
|
|
|
|
|
|
[Install]
|
|
|
|
WantedBy=multi-user.target
|