summaryrefslogtreecommitdiffstats
path: root/share
diff options
context:
space:
mode:
authorNik Lutz <nik@netstyle.ch>2016-05-12 15:54:03 +0000
committerDaniel Baumann <daniel.baumann@open-infrastructure.net>2016-05-18 18:26:07 +0000
commit41f464be1472690ef8af3c1487a8184461ab9bbf (patch)
tree4e4059b09029c9935279d1f5484609b1e02863c1 /share
parentSwaping parsing order of NETWORK_VETH_EXTRA and NETWORK_BRIDGES. (diff)
downloadcompute-tools-41f464be1472690ef8af3c1487a8184461ab9bbf.tar.xz
compute-tools-41f464be1472690ef8af3c1487a8184461ab9bbf.zip
Using systemctl to start containers.
Signed-off-by: Daniel Baumann <daniel.baumann@open-infrastructure.net>
Diffstat (limited to '')
-rw-r--r--share/systemd/container@.service11
1 files changed, 11 insertions, 0 deletions
diff --git a/share/systemd/container@.service b/share/systemd/container@.service
new file mode 100644
index 0000000..e69a701
--- /dev/null
+++ b/share/systemd/container@.service
@@ -0,0 +1,11 @@
+[Unit]
+Description="Container: %i"
+
+[Service]
+Type=simple
+ExecStart=/usr/bin/container start --name %i --nspawn
+ExecStartPost=/usr/bin/container start --name %i --start
+KillMode=mixed
+
+[Install]
+WantedBy=multi-user.target