summaryrefslogtreecommitdiffstats
path: root/share
diff options
context:
space:
mode:
authorNik Lutz <nik@netstyle.ch>2019-08-15 14:27:26 +0000
committerDaniel Baumann <daniel.baumann@open-infrastructure.net>2019-08-23 06:57:30 +0000
commit46af798c0c2089219d731b11bbd7b5d86a83de45 (patch)
tree97829902f69b7d2507dd7a0fc18b3098c329d499 /share
parentReleasing version 20190301-lts1. (diff)
downloadcompute-tools-46af798c0c2089219d731b11bbd7b5d86a83de45.tar.xz
compute-tools-46af798c0c2089219d731b11bbd7b5d86a83de45.zip
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 <daniel.baumann@open-infrastructure.net>
Diffstat (limited to 'share')
-rw-r--r--share/systemd/container@.service3
1 files changed, 1 insertions, 2 deletions
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