Linode.com Forum Forum Index Linode.com Forum
Linode Community Forums
 


Reboot from within linode

Click here to go to the original topic

 
       Linode.com Forum Forum Index -> Linux Tips, Tricks, Tutorials
Author Message
adamgent



Joined: 23 Jun 2003
Posts: 261

Posted: Thu Dec 11, 2003 6:22 pm    Post subject: Reboot from within linode  

Find it annoying that you can not reboot from within your linode, it just does a shutdown.

Well now you can.

Simply add the following to your .bashrc file or what ever shell rc file you use

alias reboot='ssh cp_username@hostxx.linode.com reboot'

changing cp_username for your cp username and hostxx for your host

the either logout and back in again or do a source .bashrc

You can now type reboot and you will be prompted for you password enter your CP password and your linode will the be rebooted. There may be a delay as it goes into the job queue. This is the same as doing a reboot from the CP.

Enjoy.

Adam
Back to top  
 
       Linode.com Forum Forum Index -> Linux Tips, Tricks, Tutorials
Page 1 of 1