mirror of
https://git.proxmox.com/git/mirror_lxc
synced 2025-08-09 14:40:07 +00:00
fix container creation from ansible lxc_containers module
Signed-off-by: Alex Punco <punco@selectel.ru>
This commit is contained in:
parent
814d049da4
commit
e145bd47c6
@ -78,13 +78,13 @@ case "$1" in
|
|||||||
if [ -n "$BOOTGROUPS" ]; then
|
if [ -n "$BOOTGROUPS" ]; then
|
||||||
BOOTGROUPS="-g $BOOTGROUPS"
|
BOOTGROUPS="-g $BOOTGROUPS"
|
||||||
fi
|
fi
|
||||||
|
touch "$lockdir"/lxc
|
||||||
# Start containers
|
# Start containers
|
||||||
wait_for_bridge
|
wait_for_bridge
|
||||||
|
|
||||||
# Start autoboot containers first then the NULL group "onboot,".
|
# Start autoboot containers first then the NULL group "onboot,".
|
||||||
"$bindir"/lxc-autostart $OPTIONS $BOOTGROUPS
|
"$bindir"/lxc-autostart $OPTIONS $BOOTGROUPS
|
||||||
touch "$lockdir"/lxc
|
rm -f "$lockdir"/lxc
|
||||||
;;
|
;;
|
||||||
|
|
||||||
stop)
|
stop)
|
||||||
@ -96,7 +96,6 @@ case "$1" in
|
|||||||
# delaying the system shutdown / reboot as much as we can since it's not
|
# delaying the system shutdown / reboot as much as we can since it's not
|
||||||
# parallelized... Even 5 second timout may be too long.
|
# parallelized... Even 5 second timout may be too long.
|
||||||
"$bindir"/lxc-autostart $STOPOPTS $SHUTDOWNDELAY
|
"$bindir"/lxc-autostart $STOPOPTS $SHUTDOWNDELAY
|
||||||
rm -f "$lockdir"/lxc
|
|
||||||
;;
|
;;
|
||||||
|
|
||||||
restart|reload|force-reload)
|
restart|reload|force-reload)
|
||||||
|
Loading…
Reference in New Issue
Block a user