[Users] "reboot" inside a container stops the container

Maxim Dolgikh max at dma.org.ua
Wed Apr 13 12:24:38 EDT 2011


Hi,

reboot is working inside containers but you need add cron job
*/2 * * * * root /usr/share/vzctl/scripts/vpsreboot

this script do start rebooted containers.

On Wednesday 13 April 2011 12:16:52 Benjamin Henrion wrote:
> Hi,
> 
> I found out that typing "reboot" in a container halts the whole
> container, making it unreacheable (the container itself is not running
> anymore, checking with vzlist on the physical machine).
> 
> Any idea if there is another command that kills all the processes and
> restart the container from within a root shell on the container (yes I
> know that you can do that with 'vzctl restart CTID' on the HN)?
> 
> Best,


More information about the Users mailing list