fix container creation from ansible lxc_containers module

Signed-off-by: Alex Punco <punco@selectel.ru>
This commit is contained in:
Alex Punco 2015-07-12 15:52:57 +03:00
parent 814d049da4
commit e145bd47c6

View File

@ -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)