4.3BSD-Reno/share/man/cat8/shutdown.0

Compare this file to the similar file:
Show the results in this format:




SHUTDOWN(8)		      1990		      SHUTDOWN(8)



NNAAMMEE
     shutdown - close down the system at a given time

SSYYNNOOPPSSIISS
     sshhuuttddoowwnn [ -- ] [ --ffhhkkrrnn ] time [ warning-message ... ]

DDEESSCCRRIIPPTTIIOONN
     _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 such
     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 _n_o_w (indicating an immediate shut-
     down) or specify a future time in one of two formats:
     +_n_u_m_b_e_r, or _y_y_m_m_d_d_h_h_m_m, where the year, month, and day may
     be defaulted to the current system values.  The first form
     brings the system down in _n_u_m_b_e_r minutes and the second at
     the absolute time specified.

     Any other arguments comprise the warning message that is
     broadcast to users currently logged into the system; if a
     single dash (``-'') is supplied as an option, the warning
     message is read from the standard input.

     At intervals, which get closer together as apocalypse
     approaches, starting at ten hours before shutdown, 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 /_e_t_c/_n_o_l_o_g_i_n and copying the warning 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 in the system log,
     containing the time of shutdown, who ran shutdown and the
     reason.  Then a terminate signal is sent to _i_n_i_t to bring
     the system down to single-user state.  Alternatively, if --rr,,
     --hh,, or --kk is 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, --kk is to make people _t_h_i_n_k the system
     is going down!)

     With the --ff option, _s_h_u_t_d_o_w_n arranges, in the manner of
     _f_a_s_t_b_o_o_t(8), that when the system is rebooted the file sys-
     tems will not be checked.	The --nn option prevents the normal
     _s_y_n_c(2) before stopping.

     The time of the shutdown and the warning message are placed
     in /_e_t_c/_n_o_l_o_g_i_n and should be used to inform the users about



Printed 7/27/90               June				1






SHUTDOWN(8)		      1990		      SHUTDOWN(8)



     when the system will be back up and why it is going down (or
     anything else).

FFIILLEESS
     /etc/nologin   tells login not to let anyone log in

     /fastboot	    tells /etc/rc not to run fsck when rebooting

SSEEEE AALLSSOO
     login(1), wall(1), fastboot(8), halt(8), reboot(8)

BBAACCKKWWAARRDD CCOOMMPPAATTIIBBIILLIITTYY
     The hours and minutes in the second time format may be
     separated by a colon (``:'') for backward compatibility.









































Printed 7/27/90               June				2