]>
Commit | Line | Data |
---|---|---|
2e8b91a6 JR |
1 | [Unit] |
2 | Description=Xenstored - daemon managing xenstore file system | |
3 | Requires=proc-xen.mount var-lib-xenstored.mount | |
4 | After=proc-xen.mount var-lib-xenstored.mount | |
54ad39bc | 5 | Before=libvirtd.service libvirt-guests.service xendomains.service xend.service |
2e8b91a6 | 6 | RefuseManualStop=true |
8849482e | 7 | ConditionPathExists=/proc/xen |
2e8b91a6 JR |
8 | |
9 | [Service] | |
10 | Type=forking | |
11 | Environment=XENSTORED_ARGS= | |
12 | Environment=XENSTORED_ROOTDIR=/var/lib/xenstored | |
13 | EnvironmentFile=-/etc/sysconfig/xenstored | |
14 | PIDFile=/var/run/xenstored.pid | |
15 | ExecStartPre=/bin/grep -q control_d /proc/xen/capabilities | |
16 | ExecStartPre=-/bin/rm -f "$XENSTORED_ROOTDIR"/tdb* | |
17 | ExecStart=/usr/sbin/xenstored --pid-file /var/run/xenstored.pid $XENSTORED_ARGS | |
9c20d0c0 | 18 | ExecStartPost=/usr/bin/xenstore-write "/local/domain/0/name" "Domain-0" |
2e8b91a6 JR |
19 | |
20 | [Install] | |
21 | WantedBy=multi-user.target |