LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 11-08-2012, 11:42 AM   #1
egobbo
LQ Newbie
 
Registered: Nov 2012
Posts: 14

Rep: Reputation: Disabled
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
 
Old 11-08-2012, 12:13 PM   #2
zunder1990
LQ Newbie
 
Registered: Feb 2011
Posts: 29

Rep: Reputation: 3
try "sudo reboot" or just "reboot"
 
Old 11-08-2012, 12:19 PM   #3
egobbo
LQ Newbie
 
Registered: Nov 2012
Posts: 14

Original Poster
Rep: Reputation: Disabled
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
 
Old 11-08-2012, 12:27 PM   #4
zunder1990
LQ Newbie
 
Registered: Feb 2011
Posts: 29

Rep: Reputation: 3
If you would like to delay the reboot run this "shutdown --help" to get more info about the shutdown cmd.
 
Old 11-08-2012, 12:58 PM   #5
bijo505
Member
 
Registered: Nov 2012
Location: Bangalore
Distribution: Fedora & Ubuntu
Posts: 77

Rep: Reputation: 18
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
 
Old 11-08-2012, 01:06 PM   #6
egobbo
LQ Newbie
 
Registered: Nov 2012
Posts: 14

Original Poster
Rep: Reputation: Disabled
Great! That's what I needed. Thank you Folks!
 
Old 11-08-2012, 01:38 PM   #7
Wim Sturkenboom
Senior Member
 
Registered: Jan 2005
Location: Roodepoort, South Africa
Distribution: Slackware 10.1/10.2/12, Ubuntu 12.04, Crunchbang Statler
Posts: 3,786

Rep: Reputation: 282Reputation: 282Reputation: 282
Quote:
Originally Posted by egobbo View Post
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.
 
Old 11-08-2012, 01:44 PM   #8
egobbo
LQ Newbie
 
Registered: Nov 2012
Posts: 14

Original Poster
Rep: Reputation: Disabled
Thank you Sir!
I missed that.
eg
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Server reboot, why ? saavik Linux - Server 6 06-19-2010 07:31 AM
Fedora i686/2.4.27-0.3um - Server hostname reverts to original upon server reboot foxhosting Linux - Newbie 2 02-25-2006 04:39 AM
Server IP changes on reboot? gauntalus Linux - Networking 3 06-02-2004 10:29 PM
reboot server !! chuck77 Linux - General 1 02-07-2002 11:03 PM


All times are GMT -5. The time now is 08:54 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration