Re: VEs and rebooting [message #12780 is a reply to message #12777] |
Wed, 09 May 2007 09:15 ![Go to previous message Go to previous message](/theme/ovz3/images/up.png) ![Go to next message Go to previous message](/theme/ovz3/images/down.png) |
Vasily Tarasov
Messages: 1345 Registered: January 2006
|
Senior Member |
|
|
On Wed, 2007-05-09 at 03:05 -0600, Gregor Mosheh wrote:
> > Ian P. Christian wrote:
> >> I've noticed that there's a /etc/cron.d/vz, which runs
> >> /usr/share/vzctl/scripts/vpsreboot
> >> My understanding is that vpsreboot should scan for
> >> /vz/private/nnn/reboot, and if it finds that file, it will start the VPS
> >> and delete it the file.
>
> Pardon me if this question sounds dense. I'm looking at the vpsreboot
> code, since I'd like to understand everything there is to know about
> VZ....
>
> The vpsreboot cronjob runs every 5 minutes. It looks for a /reboot file in
> each VE's directory; if it exists and the VE is stopped, it starts the VE.
> Sounds good but... what exactly is the point of this functionality?
For example the root of VE performed `reboot` command inside VE. VE will
stop, but somebody from outer world should start it again. vpsreboot is
this somebody, who starts VE if it was rebooted. ;)
>
> Is it used as part of the VZ startup sequence, or for watchdogging, ...?
>
|
|
|