summaryrefslogtreecommitdiffstats
path: root/share/systemd
diff options
context:
space:
mode:
Diffstat (limited to 'share/systemd')
-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