[Unit] Description=Zephyr OS as guest # NOTE 1 # For now this service has no dependencies. # NOTE 2 # If your product needs additional dependency, consider to use # systemd drop-in units instead of modifications in this file. # NOTE 3 # Dependencies (After=, Requires=) cannot be reset to an empty list, # so dependencies can only be added in drop-ins. If you want to # remove dependencies, you have to override the entire unit. #Requires=backend-ready@block.service #After=backend-ready@block.service [Service] Type=oneshot ExecStart=/usr/sbin/xl create /etc/xen/domz.cfg ExecStop=/usr/sbin/xl shutdown -w DomZ ExecStopPost=/usr/sbin/xl destroy DomZ RemainAfterExit=true [Install] WantedBy=multi-user.target