xen/xendomains.service

16 lines
450 B
SYSTEMD
Raw Normal View History

[Unit]
Description=Xendomains - start and stop Xen VMs on boot and shutdown
Requires=xenstored.service xenconsoled.service
After=xencommons.service xenstored.service xenconsoled.service network.target
ConditionPathExists=/proc/xen
[Service]
Type=oneshot
RemainAfterExit=true
ExecStartPre=/bin/grep -q control_d /proc/xen/capabilities
ExecStart=-/etc/init.d/xendomains start
ExecStop=/etc/init.d/xendomains stop
[Install]
WantedBy=multi-user.target