From 41f464be1472690ef8af3c1487a8184461ab9bbf Mon Sep 17 00:00:00 2001 From: Nik Lutz Date: Thu, 12 May 2016 17:54:03 +0200 Subject: Using systemctl to start containers. Signed-off-by: Daniel Baumann --- share/systemd/container@.service | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 share/systemd/container@.service (limited to 'share/systemd') 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 -- cgit v1.2.3