summaryrefslogtreecommitdiffstats
path: root/share/systemd/container@.service
diff options
context:
space:
mode:
authorNik Lutz <nik@netstyle.ch>2016-05-18 08:49:29 +0000
committerDaniel Baumann <daniel.baumann@open-infrastructure.net>2016-05-18 18:26:08 +0000
commit198710f9359e09bbb47ef966c671bf686e6989e5 (patch)
treebf466834603d8eef37135942df7dbe18770e082a /share/systemd/container@.service
parentUsing systemctl to start containers. (diff)
downloadcompute-tools-198710f9359e09bbb47ef966c671bf686e6989e5.tar.xz
compute-tools-198710f9359e09bbb47ef966c671bf686e6989e5.zip
Using systemd to cleanup network interfaces after the container has been stopped.
Signed-off-by: Daniel Baumann <daniel.baumann@open-infrastructure.net>
Diffstat (limited to '')
-rw-r--r--share/systemd/container@.service1
1 files changed, 1 insertions, 0 deletions
diff --git a/share/systemd/container@.service b/share/systemd/container@.service
index e69a701..0bd6766 100644
--- a/share/systemd/container@.service
+++ b/share/systemd/container@.service
@@ -5,6 +5,7 @@ Description="Container: %i"
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]