Signed-off-by: Alex Punco <punco@selectel.ru>
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)
# 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)