mirror of
https://git.proxmox.com/git/mirror_lxc
synced 2025-08-05 01:42:33 +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
|
||||
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)
|
||||
|
Loading…
Reference in New Issue
Block a user