INTERACTIVE UNIX System Installation - Version 2.2 71
5. SHUTTING DOWN AND REBOOTING THE SYSTEM
5.1 Shutting Down the System
The INTERACTIVE UNIX Operating System is a multi-tasking sys*
tem. A multi-tasking system can run many different processes (pro*
grams) at the same time. For example, you may be editing a file at
the same time that another file is being printed on your printer.
When you are ready to turn off your computer, you must arrange to
have the system complete all of the tasks that are currently running.
This is accomplished with a system maintenance procedure called
s hut d own. The s hutdown program gracefully terminates the
tasks that are currently executing before halting the system. You
can safely turn off the computer when s hu t down has finished. If
you do not run the s hutdown program, you may lose data and
cause damage to your file system.
The s hut down program can be initiated in one of two ways:
1. Use the powe r down administrative login.
2. Execute the s hu t down command.
5.2 Using the p ow e r d own Administrative Login
When you are ready to turn your machine off, you may bring the
system down with the pow e r down administrative login.
1. Log out of your ordinary user account.
2. Log in to the system with the powe r down user ID .
.- Note that you must know the p ow e r down password if
one has been set.
3. Once you have successfully logged in to the system using the
powe r down login, the system automatically executes the
s hutdown program. The system displays a screen similar to
this:
l og i n : power down
P a s sword :
UN I X S y s t e m V/ 3 8 6 Re l e a s e 3 . 2
Copyr i ght ( c ) 1 9 8 4 , 1 9 8 6 , 1 9 8 7 , 1 9 8 8 AT&T
Copyr i ght ( c ) 1 9 8 7 , 1 9 8 8 M i c ro s o f t Corporat i on
A l l r i gh t s r e s erved
On c e s t a r t e d , a powerdown C ANNOT BE S TOPPED .
Do you want to s t a r t an expre s s powerdown [ y , n , ? , q]
4. If you are ready to bring the system down, type y. The sys*
tem responds:
72 INTERACTIVE UNIX System Installation - Version 2.2
Shutdown s t a r t e d Wed Jun 3 1 7 : 3 1 : 4 4 PDT 1 9 8 7
Broad c a s t m e s s a g e f r om root ( co n s o l e ) o n p l a t o
Wed Jun 3 1 7 : 3 1 : 44 PDT 1 98 7
T H I S SYS TEM I S B E I NG SHUT DOWN NOW I I I
Log o f f now or r i sk your f i l e s be i ng damaged .
I N I T : New run l ev e l 0
The s y s t e m i s c o m i ng down , p l e a s e wa i t .
S y s t e m s e rv i c e s a r e now be i ng s topped .
Stopp i ng proc e s s a c c ount i ng .
The s y s t e m i s down
P r e s s any key t o r e - boot .
5. When the P r e s s a n y k e y t o r e - b oot message appears,
the computer may be turned off.
5.3 Using the s hu t d own Command
To execute the s hu t d own command manually, you must log in to
the system using the r o o t login. When you are logged in as
r o o t , you will see the # prompt :
l og i n : root
P a s sword :
#
If you are logged in to the system as r o o t and want to execute the
s hu t d own command manually, follow these instructions:
1. Make the r o o t directory your current directory by executing (
this command at the # prompt:
# cd /
2. Run the s hu t d own program with this command:
# s hutdown
The system will automatically generate a message on every
terminal currently in use to warn users that the system is
being shut down. The message will look something like this:
TH I S S Y S T EM IS B E I NG S HUTDOWN I l l
Log o f f now o r r i s k your f i l e s be i ng damag e d .
The system will wait 1 minute to give users a chance to exit
editors and save files before the system goes down.
3. Your screen will then look similar to this:
Do you want to c on t i nue ( y or n )
Type y . Shutdown will then proceed. (If you do not want to
be prompted at this point while shutting down the system,
INTERACTIVE UNIX System Installation - Version 2. 2 73
you can use the - y option when typing the s hu t d own
command. )
4. If you wish to give users a different warning period before the
system comes down, run the s hu t d own program using the
- g option:
# shutdown - g time
In actual use, time is replaced by the number of seconds you
wish to have elapse before the system is halted. It is a good
idea to allow at least 2 minutes ( 1 20 seconds) to elapse before
the system is brought down. For example:
# s hutdown -g 1 2 0
The system automatically runs s hu t d own. A screen similar
to the one generated by the pow e r d own procedure will
display.
5. When the P r e s s any k e y to r e - bo o t message appears,
the computer may be turned off.