Commit 7faa2236 by Stéphane Graber

Merge pull request #588 from sapun/master

fix container creation from ansible lxc_containers module
parents 814d049d e145bd47
......@@ -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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment