Suppose you manage a box with 300 containers, all on autostart=1. One day you reboot the box but you need to avoid all the contaoners to start. There should be a command like lxc-cancel-autostart. Does it make sense?
On Friday, August 8, 2014, Harald Dunkel <[email protected]> wrote: > I am not familiar with Ubuntu's setup, but assuming it supports > sysv-init I would suggest to omit lxc in a dedicated run level. > > If your default run level is 2 (specified in /etc/inittab), then > you could use update-rc.d to omit lxc in run level 3, e.g. > > # update-rc.d lxc start 20 2 4 5 . stop 20 0 1 3 6 . > > This means lxc is started in run levels 2, 4 and 5, and > stopped in 0, 1, 3 and 6. > > If you need to boot without starting the containers, then you > can choose run level 3 on the kernel command line at boot time, > e.g. > linux /boot/vmlinuz root= ... quiet 3 > > grub2 allows you to modify the kernel command line before booting. > Using telinit you can change the run level at run time, e.g. > 'telinit 2' to switch to run level 2 (to start your containers). > > > Hope this helps > Harri > > _____________________________________________he__ > lxc-users mailing list > [email protected] <javascript:;> > http://lists.linuxcontainers.org/listinfo/lxc-users
_______________________________________________ lxc-users mailing list [email protected] http://lists.linuxcontainers.org/listinfo/lxc-users
