OpenVZ Forum


Home » General » Support » *SOLVED* Enable SSH by default after reboot?
Re: Enable SSH by default after reboot? [message #6322 is a reply to message #6303] Thu, 14 September 2006 07:15 Go to previous messageGo to previous message
Vasily Tarasov is currently offline  Vasily Tarasov
Messages: 1345
Registered: January 2006
Senior Member
Quote:

So there is no way to reboot the VPS from the Shell inside the VPS without typing restart in the physical node?


You're right... During reboot init of VE is killed and nobody can give birth to new init.

Quote:

Are there any control panels that solved this problem?


Sorry, but I don't know any...

There is a solution however. And it even works for some templates! Very Happy

VE on runlevel 6 (reboot) creates file, that indicates that restart happened. Thus we can create cron job, that will go through all mounted (but not started) VEs and if the "indicator" file exist - start VE.

By default vzctl goes with file
/etc/cron.d/vpsreboot that every 5 minutes invokes
/usr/share/vzctl/scripts/vpsreboot

For FC4 ob HN and FC4 in VE it works.

Problems persist while different distiubutions/templates are tuned differently:
1) Your crond on HN should use /etc/cron.d/vpsreboot.
2) Your VE template should create indicator file.

However, these problems can simply be solved by hand.

HTH,
vass.
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Problem with installing openvz on debian
Next Topic: *SOLVED* RHEL4 install problem
Goto Forum:
  


Current Time: Tue Aug 13 14:16:05 GMT 2024

Total time taken to generate the page: 0.02805 seconds