System Shutdown and Restart


Although it's not often necessary, you may find a reason to occasionally restart or shut down your server. Table A.15 contains these commands.

Table A.15. Commands for Changing the State of the System

COMMAND

GENERAL USAGE

DESCRIPTION

halt

halt

Shuts down the computer.

init

init [RUNLEVEL]

Changes the current runlevel to the specified runlevel.

Possible runlevels are

  

0

System halt

  

1,S,s

Single-user mode

  

2

Local multiuser, minimal networking

  

3

Full multiuser with networking

  

4

Not used

  

5

Full multiuser with networking and graphical environment

  

6

System reboot

reboot

reboot

Restarts the computer.

runlevel

runlevel

Displays previous and current runlevel. (If the previous runlevel is N, runlevel has not been switched since startup.)

shutdown

shutdown [OPTIONS] time

Used to shut down or restart a Linux machine.

Common options include

-h Halt, or shut down computer

-r Reboot computer

For example:

 shutdown -h now 




    NovellR Open Enterprise Server Administrator's Handbook SUSE LINUX Edition
    Novell Open Enterprise Server Administrators Handbook, SUSE LINUX Edition
    ISBN: 067232749X
    EAN: 2147483647
    Year: 2005
    Pages: 178

    flylib.com © 2008-2017.
    If you may any questions please contact us: flylib@qtcs.net