[Unit] Description=Xendomains - start and stop Xen VMs on boot and shutdown After=xencommons.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