LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   server reboot (https://www.linuxquestions.org/questions/linux-newbie-8/server-reboot-4175436276/)

egobbo 11-08-2012 10:42 AM

server reboot
 
Hello Everybody,

I am new to Linux and I need to reboot one of our test servers. can anyone give me the command sequence for a 'graceful' reboot?

Much appreciated

eg

zunder1990 11-08-2012 11:13 AM

try "sudo reboot" or just "reboot"

egobbo 11-08-2012 11:19 AM

Thank you.
I checked the man page and I can't see an option to delay the reboot for a certain amount of seconds or to notify all users logged on the server.
Any experience with that?
eg

zunder1990 11-08-2012 11:27 AM

If you would like to delay the reboot run this "shutdown --help" to get more info about the shutdown cmd.

bijo505 11-08-2012 11:58 AM

Hi,
You can use any one of the following options.

If you are a root user just run the following from console

#shutdown -r +3 "The system will be rebooted in 3 minutes, kindly save your work!!"
or
$sudo shutdown -r +3 "The system will be rebooted in 3 minutes, kindly save your work!!"
--
Thanks,
Bijo

egobbo 11-08-2012 12:06 PM

Great! That's what I needed. Thank you Folks!

Wim Sturkenboom 11-08-2012 12:38 PM

Quote:

Originally Posted by egobbo (Post 4825159)
Great! That's what I needed. Thank you Folks!

Great. Please mark your thread as solved using the thread tools just above the first post on this page.

egobbo 11-08-2012 12:44 PM

Thank you Sir!
I missed that.
eg


All times are GMT -5. The time now is 05:55 PM.