summarylogtreecommitdiffstats
path: root/lxc.service
diff options
context:
space:
mode:
Diffstat (limited to 'lxc.service')
-rw-r--r--lxc.service11
1 files changed, 11 insertions, 0 deletions
diff --git a/lxc.service b/lxc.service
new file mode 100644
index 000000000000..4c0c34e3ea15
--- /dev/null
+++ b/lxc.service
@@ -0,0 +1,11 @@
+[Unit]
+Description=%i LXC
+After=network.target
+
+[Service]
+Type=forking
+ExecStart=/usr/bin/lxc-start -d -n %i
+ExecStop=/usr/bin/lxc-stop -n %i
+
+[Install]
+WantedBy=multi-user.target