[0m


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



[1mNAME
     [0mshutdown - close down the system at a given time

[1mSYNOPSIS
     /usr/sbin/shutdown [0m[ [1m-fhknr [0m] time [ warning-message ... ]

[1mDESCRIPTION
     [0m_S_h_u_t_d_o_w_n provides an automated shutdown procedure which a
     super-user can use to notify users nicely when the system is
     shutting down, saving them from system administrators, hack-
     ers, and gurus, who would otherwise not bother with
     niceties.

     _T_i_m_e is the time at which _s_h_u_t_d_o_w_n will bring the system
     down and may be the word [1mnow [0m(indicating an immediate shut-
     down) or specify a future time in one of two formats:
     [1m+[0mnumber and hour[1m:[0mmin.  The first form brings the system down
     in _n_u_m_b_e_r minutes and the second brings the system down at
     the time of day indicated (as a 24-hour clock).

     At intervals which get closer together as apocalypse
     approaches, warning messages are displayed at the terminals
     of all users on the system.  Five minutes before shutdown,
     or immediately if shutdown is in less than 5 minutes, logins
     are disabled by creating /etc/nologin and writing a message
     there.  If this file exists when a user attempts to log in,
     _l_o_g_i_n(1) prints its contents and exits.  The file is removed
     just before _s_h_u_t_d_o_w_n exits.

     At shutdown time a message is written to the system log dae-
     mon, syslogd(8), containing the time of shutdown, who ran
     shutdown and the reason.  Then a terminate signal is sent at
     _i_n_i_t to bring the system down to single-user state.  Alter-
     natively, if [1m-r, -h, [0mor [1m-k [0mwas used, then _s_h_u_t_d_o_w_n will exec
     _r_e_b_o_o_t(8), _h_a_l_t(8), or avoid shutting the system down
     (respectively).  (If it isn't obvious, [1m-k [0mis to make people
     _t_h_i_n_k the system is going down!) The [1m-n [0moption can be used
     with [1m-h [0mor [1m-r [0mto prevent _r_e_b_o_o_t(8) or _h_a_l_t(8) performing a
     _s_y_n_c(2) prior to the system stopping.  The [1m-f [0moption causes
     a fast recovery (ie no automatic _f_s_c_k(8) of the discs) when
     the system restarts.

     The time of the shutdown and the warning message are placed
     in /etc/nologin and should be used to inform the users about
     when the system will be back up and why it is going down (or
     anything else).

[1mFILES
     [0m/etc/nologin   tells login not to let anyone log in

[1mSEE ALSO
     [0mlogin(1), reboot(8), syslogd(8)



Printed 12/11/92    Revision 1.6 of 18/07/90			1






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



[1mBUGS
     [0mOnly allows you to kill the system between now and 23:59 if
     you use the absolute time for shutdown.




















































Printed 12/11/92    Revision 1.6 of 18/07/90			2



[0m