From 46af798c0c2089219d731b11bbd7b5d86a83de45 Mon Sep 17 00:00:00 2001 From: Nik Lutz Date: Thu, 15 Aug 2019 16:27:26 +0200 Subject: Fix start of container by altering the systemd service file. This fix workarounds a missing/wrong condition in the start script which leads to systemd-nspawn beeing called twice. The seconds call to systemd-nspawn fails because the container is already running. Systemd then killed the container. Signed-off-by: Daniel Baumann --- share/systemd/container@.service | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'share/systemd/container@.service') diff --git a/share/systemd/container@.service b/share/systemd/container@.service index 9e9f720..99c4bd4 100644 --- a/share/systemd/container@.service +++ b/share/systemd/container@.service @@ -4,8 +4,7 @@ Documentation=man:compute-tools [Service] Type=simple -ExecStart=/usr/bin/container start --name %i --nspawn --no-notification -ExecStartPost=/usr/bin/container start --name %i --start --no-notification +ExecStart=/usr/bin/container start --name %i --start --no-notification ExecStopPost=/usr/bin/container stop -n %i --clean --no-notification KillMode=mixed -- cgit v1.2.3