OpenVZ Forum


Home » Mailing lists » Users » "reboot" inside a container stops the container
Re: "reboot" inside a container stops the container [message #42410 is a reply to message #42405] Wed, 13 April 2011 16:24 Go to previous messageGo to previous message
MaksymDolgykh is currently offline  MaksymDolgykh
Messages: 4
Registered: February 2007
Location: Ukraine
Junior Member
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,
 
Read Message
Read Message
Read Message
Previous Topic: How do I know which IP packet is for which container in kernel space
Next Topic: Switching from VMWare to OpenVZ?
Goto Forum:
  


Current Time: Sat Nov 09 13:35:47 GMT 2024

Total time taken to generate the page: 0.03063 seconds