summaryrefslogtreecommitdiff
path: root/kernels/xen/xendomU@.service
diff options
context:
space:
mode:
Diffstat (limited to 'kernels/xen/xendomU@.service')
-rw-r--r--kernels/xen/xendomU@.service12
1 files changed, 12 insertions, 0 deletions
diff --git a/kernels/xen/xendomU@.service b/kernels/xen/xendomU@.service
new file mode 100644
index 000000000..57d6e520d
--- /dev/null
+++ b/kernels/xen/xendomU@.service
@@ -0,0 +1,12 @@
+[Unit]
+Description=xen domU service for domain %i
+Requires=xenstored.service
+
+[Service]
+Type=oneshot
+RemainAfterExit=yes
+ExecStart=/usr/sbin/xl create /etc/xen/conf/%i.cfg
+ExecStop=/usr/sbin/xl shutdown %i
+
+[Install]
+WantedBy=multi-user.target