summaryrefslogtreecommitdiffstats
path: root/share/systemd/container@.service
diff options
context:
space:
mode:
authorDaniel Baumann <mail@daniel-baumann.ch>2016-05-18 09:33:34 +0000
committerDaniel Baumann <mail@daniel-baumann.ch>2016-05-18 18:28:29 +0000
commit29304d802385787ca4dd04ad6d8d18bb1f01bc2d (patch)
tree7e67daf3af2f1bc47dafcea7b43389ed08b98159 /share/systemd/container@.service
parentAdding upstream version 20160501. (diff)
downloadopen-infrastructure-compute-tools-29304d802385787ca4dd04ad6d8d18bb1f01bc2d.tar.xz
open-infrastructure-compute-tools-29304d802385787ca4dd04ad6d8d18bb1f01bc2d.zip
Adding upstream version 20160515.upstream/20160515
Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
Diffstat (limited to 'share/systemd/container@.service')
-rw-r--r--share/systemd/container@.service12
1 files changed, 12 insertions, 0 deletions
diff --git a/share/systemd/container@.service b/share/systemd/container@.service
new file mode 100644
index 0000000..0bd6766
--- /dev/null
+++ b/share/systemd/container@.service
@@ -0,0 +1,12 @@
+[Unit]
+Description="Container: %i"
+
+[Service]
+Type=simple
+ExecStart=/usr/bin/container start --name %i --nspawn
+ExecStartPost=/usr/bin/container start --name %i --start
+ExecStopPost=/usr/bin/container stop -n %i --clean
+KillMode=mixed
+
+[Install]
+WantedBy=multi-user.target