PDA

View Full Version : restart VPS from shell?



bpatters7
05-09-2008, 05:19 PM
is there a way to restart your VPS (virtual private server) from the shell?

Note I'm not talking about restarting the Apache server but the whole VPS

allyn
05-09-2008, 11:04 PM
the quick answer is no. the shell command "restart" will shut down the apps within your vps (apache, mysql, etc.) and restart them but it is not the same as restart from the manager.

WestHost - MCox
05-12-2008, 12:27 PM
bpatters7,

Allyn is correct. The 'restart' command will restart all applications that have a startup file in your /etc/rc.d/init.d directory, but it does not fully restart the VPS. However, this type of restart is usually sufficient in most circumstances.

If you have a custom application that you would like to have included as part of the 'restart' command, you can do so by putting the startup script (or setting up a link to it) in the /etc/rc.d/init.d directory.

If you do need a full restart, the option within Site Manager is the best way to go.