1829543 Members
2207 Online
109992 Solutions
New Discussion

Re: Reboot server

 
Adrian_72
Advisor

Reboot server

Hi all;

What is the sintax comand for reboot the N400 server ?
6 REPLIES 6
Sridhar Bhaskarla
Honored Contributor

Re: Reboot server

Hi Adrian,

I use "shutdown -r now". Shutdown will execute shutdown scripts in /sbin/init.d so the system will go down cleanly.

Reboot will not do it other than setting the FSCLEAN flag on the filesystems. If I am in a hurry, I use "reboot -qs"

-Sri
You may be disappointed if you fail, but you are doomed if you don't try
Robert-Jan Goossens
Honored Contributor

Re: Reboot server

Hi,

/sbin/shutdown [-h|-r] [-y] [-o] [grace]

reboot
# shutdown -r -y now

halt the system
# shutdown -h -y now

Regards,
Robert-Jan
Olivier Decorse
Respected Contributor

Re: Reboot server

I think it is not the N4000 way to search, but the OS version : 11.0, 11i ?
Under this two, i use :
shutdown -r -y 0

For any parameters, use man 1m shutdown
1m is important, because without, you will see how to shutdown ... a socket !!

Olivier.
They say "install windows 2k, xp or better", so i install unix !
Rick Garland
Honored Contributor

Re: Reboot server

/usr/sbin/shutdown -r -y now
Usually don't need full PATH (/usr/sbin should be in the root PATH)

-r says to reboot
-y says 'yes' to the questions for rebooting
now means no grace period, do the reboot now.

Sridhar Bhaskarla
Honored Contributor

Re: Reboot server

Hi,

In addition, if you are planning to reboot with a script, add -y flag as indicated before and make sure you are in / filesystem.

#cd /
#shutdown -r -y now

-Sri
You may be disappointed if you fail, but you are doomed if you don't try
Geoff Wild
Honored Contributor

Re: Reboot server

shutdown -r now

More info in man pages:

man 1m shutdown

Rgds...Geoff
Proverbs 3:5,6 Trust in the Lord with all your heart and lean not on your own understanding; in all your ways acknowledge him, and he will make all your paths straight.