From 198710f9359e09bbb47ef966c671bf686e6989e5 Mon Sep 17 00:00:00 2001 From: Nik Lutz Date: Wed, 18 May 2016 10:49:29 +0200 Subject: Using systemd to cleanup network interfaces after the container has been stopped. Signed-off-by: Daniel Baumann --- share/systemd/container@.service | 1 + 1 file changed, 1 insertion(+) (limited to 'share/systemd') 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] -- cgit v1.2.3