


SHUTDOWN(8)	 Linux Programmer's Manual	 SHUTDOWN(8)


NNAAMMEE
       shutdown - bring the system down

SSYYNNOOPPSSIISS
       //bbiinn//sshhuuttddoowwnn [--tt _s_e_c] [--rrkkhhnnccff] _t_i_m_e [_w_a_r_n_i_n_g_-_m_e_s_s_a_g_e]

DDEESSCCRRIIPPTTIIOONN
       SShhuuttddoowwnn	brings	the  system  down  in a secure way.  All
       logged in users are notified  that  the	system	is  going
       down, and _l_o_g_i_n_(_1_) is blocked.  It is possible to shut the
       system down immideately, or after a delay.  All	processes
       are  first  notified  that the system is going down by the
       signal SIGTERM.	This gives programs like _v_i_(_1_)	the  time
       to  save	the file being editted, mail and news processing
       programs a chance to exit cleanly, etc.	When  the  system
       is  idle,  the  program //eettcc//bbrrcc is run, if present.  Then
       the system is either rebooted by _r_e_b_o_o_t_(_1_)  or  halted  by
       _h_a_l_t_(_1_).

OOPPTTIIOONNSS
       --tt _s_e_c Wait  _s_e_c	seconds  between  sending  processes the
	      warning and the kill signal.

       --kk     Don't really shutdown; only send the  warning  mes-
	      sages to everybody.

       --rr     Reboot after shutdown.

       --hh     Halt after shutdown.

       --nn     Don't sync before rebooting or halting.

       --ff     Do  a `fast' reboot, that means no filesystems will
	      be checked.

       --cc     Cancel  an  already  running  shutdown.  With  this
	      option it is ofcourse not possible to give the ttiimmee
	      argument, but you can enter a  explanitory  message
	      on the command line that will be sent to all users.

       _t_i_m_e   When to shutdown.

       _w_a_r_n_i_n_g_-_m_e_s_s_a_g_e
	      Message to send to all users.

       The _t_i_m_e argument can have different formats.   First,  it
       can  be	an absolute time in the format _h_h_:_m_m, in which _h_h
       is the hour (1 or 2 digits) and _m_m is the  minute  of  the
       hour (in two digits).  Second, it can be in the format ++_m,
       in which _m is the number of minutes to wait.  The word nnooww
       is an alias for ++00.

       The  --ff	flag  means  `reboot fast'.  This only creates an
       advisory file //eettcc//ffaassttbboooott which can  be  tested  by  the



			   May 13, 1993				1





SHUTDOWN(8)	 Linux Programmer's Manual	 SHUTDOWN(8)


       system  when it comes up again.	The boot rc file can test
       if this file is present, and decide  not	to  run  _f_s_c_k_(_1_)
       since  the  system  has	been shut down in the proper way.
       After that, the boot process should remove  //eettcc//ffaassttbboooott.

FFIILLEESS
       /etc/fastboot
       /bin/halt
       /bin/reboot

AAUUTTHHOORR
       Miquel van Smoorenburg, miquels@drinkel.nl.mugnet.org

SSEEEE AALLSSOO
       fsck(1), init(1), halt(8), reboot(8)










































			   May 13, 1993				2


