[ale] "shutdown -r now" vs "init 6" vs "reboot"

J. Cary Howell chowell at xilogix.net
Tue Sep 20 10:03:25 EDT 2005


shutdown -r -t 10 "System reboot; please logout now"

might work a little better for you.



On Mon, 2005-09-19 at 16:54 -0400, Christopher Coleman wrote:
> The commands reboots the system immediately without providing users with 
> time to close their apps. They work fine on single user systems. On 
> multi-user systems, shutdown is used to send a message to users 
> indicating the system is going down and give them time to log out.
> 
> shutdown -r 10 "system reboot; logout now"
> 
> Will reboot the system in 10 minutes. The message in quotes will be sent 
> to all logged in users once every minute. When the time is under a 
> minute remaining, the message will be sent every few seconds.
> 
> Jimmy Oliver wrote:
> > Which is the preferred way to reboot a linux box?  I have always used  
> > init 6.  The box in question is a RHEL 3 install.  My understanding  
> > of the RedHat init scripts was that shutdown just called init 6  
> > anyway.  Can someone give the preferred method, and detail the  
> > differences between the 3?
> > 
> > 
> > Thanks,
> > -Jimmy
> > _______________________________________________
> > Ale mailing list
> > Ale at ale.org
> > http://www.ale.org/mailman/listinfo/ale
> > 
> > 
> _______________________________________________
> Ale mailing list
> Ale at ale.org
> http://www.ale.org/mailman/listinfo/ale



More information about the Ale mailing list