]>
Commit | Line | Data |
---|---|---|
b3e9565a JK |
1 | [Unit] |
2 | Description=qemu for xen dom0 disk backend | |
3 | Requires=proc-xen.mount xenstored.service | |
4 | After=proc-xen.mount xenstored.service xenconsoled.service | |
5 | Before=xendomains.service libvirtd.service libvirt-guests.service | |
6 | RefuseManualStop=true | |
7 | ConditionPathExists=/proc/xen/capabilities | |
8 | ConditionFileIsExecutable=/usr/bin/qemu-system-i386 | |
9 | ||
10 | [Service] | |
11 | Type=simple | |
12 | PIDFile=/var/run/qemu-dom0.pid | |
13 | ExecStartPre=/bin/grep -q control_d /proc/xen/capabilities | |
14 | ExecStart=/usr/bin/qemu-system-i386 -xen-domid 0 \ | |
15 | -xen-attach -name dom0 -nographic -M xenpv -daemonize \ | |
16 | -monitor /dev/null -serial /dev/null -parallel /dev/null \ | |
17 | -pidfile /var/run/qemu-dom0.pid | |
18 | ||
19 | [Install] | |
20 | WantedBy=multi-user.target |