From e145bd47c61af60b6239532c1f3d0a8d18f21cd2 Mon Sep 17 00:00:00 2001 From: Alex Punco Date: Sun, 12 Jul 2015 15:52:57 +0300 Subject: [PATCH] fix container creation from ansible lxc_containers module Signed-off-by: Alex Punco --- config/init/common/lxc-containers.in | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/config/init/common/lxc-containers.in b/config/init/common/lxc-containers.in index 73ccdbac3..ebce36e3e 100644 --- a/config/init/common/lxc-containers.in +++ b/config/init/common/lxc-containers.in @@ -78,13 +78,13 @@ case "$1" in if [ -n "$BOOTGROUPS" ]; then BOOTGROUPS="-g $BOOTGROUPS" fi - + touch "$lockdir"/lxc # Start containers wait_for_bridge # Start autoboot containers first then the NULL group "onboot,". "$bindir"/lxc-autostart $OPTIONS $BOOTGROUPS - touch "$lockdir"/lxc + rm -f "$lockdir"/lxc ;; stop) @@ -96,7 +96,6 @@ case "$1" in # delaying the system shutdown / reboot as much as we can since it's not # parallelized... Even 5 second timout may be too long. "$bindir"/lxc-autostart $STOPOPTS $SHUTDOWNDELAY - rm -f "$lockdir"/lxc ;; restart|reload|force-reload) -- 2.47.2