diff options
author | Christian Neukirchen <chneukirchen@gmail.com> | 2014-07-29 16:16:18 +0200 |
---|---|---|
committer | Christian Neukirchen <chneukirchen@gmail.com> | 2014-07-29 16:16:18 +0200 |
commit | 355a02b5baa1287c9c1c3f35c189d22fde6e5323 (patch) | |
tree | 455d266fcc2c116fe42c3b01a9bdd7b2dd3fbf6d /shutdown.8 | |
parent | 0845df3ff9330b775b4f3b259833e80560174fbf (diff) | |
download | runit-void-355a02b5baa1287c9c1c3f35c189d22fde6e5323.tar.gz runit-void-355a02b5baa1287c9c1c3f35c189d22fde6e5323.tar.xz runit-void-355a02b5baa1287c9c1c3f35c189d22fde6e5323.zip |
add halt(8) and shutdown(8)
Diffstat (limited to 'shutdown.8')
-rw-r--r-- | shutdown.8 | 90 |
1 files changed, 90 insertions, 0 deletions
diff --git a/shutdown.8 b/shutdown.8 new file mode 100644 index 0000000..cb66ef4 --- /dev/null +++ b/shutdown.8 @@ -0,0 +1,90 @@ +.Dd July 29, 2014 +.Dt SHUTDOWN 8 +.Os Linux +.Sh NAME +.Nm shutdown +.Nd bring down the system +.Sh SYNOPSIS +.Nm shutdown +.Op Fl rhP +.Op Fl fF +.Op Cm now | Cm + Ns Ar mins +.Op Ar message... +.Sh DESCRIPTION +.Nm +brings the system down in a secure way. +All logged-in users +are notified that the system is going down, and +.Xr login 1 +is blocked. +.Pp +By default, +.Nm +puts the system into single user mode. Rebooting and halting the +system can be done using the following options: +.Bl -tag -width indent +.It Fl c +Cancel an ongoing shutdown. +.It Fl f +Enable fast booting; skip +.Xr fsck 8 +on next boot. +.It Fl F +Force run of +.Xr fsck 8 +on next boot. +.It Fl h +Halt the system. +.It Fl k +Don't really shutdown; only send the warning messages to everybody. +.It Fl P +Poweroff the system. +.It Fl r +Reboot the system. +.It Cm now +Shutdown without further waiting. +.It Cm + Ns Ar mins +Wait +.Ar mins +minutes before shutting down. +.It Ar message +Message displayed to all users, defaults to "system is going down". +.El +.Sh UNSUPPORTED OPTIONS +This version of +.Nm +is based on +.Xr runit 8 , +the following features are +.Sy not +supported: +.Bl -tag -width indent +.It Fl t Ar secs +to wait +.Ar secs +seconds between SIGKILL and SIGTERM on shutdown is silently ignored. +.It Fl a +Use +.Pa /etc/shutdown.allow . +.It Fl H +Drop into boot monitor. +.It Fl n +Don't call +.Xr init 8 . +.It Ar hh Ns : Ns Ar mm +Absolute time specification is not implemented. +.El +.Sh EXAMPLES +Turn off the system: +.Dl # shutdown -h now +.Sh SEE ALSO +.Xr fsck 8 , +.Xr init 8 , +.Xr runit 8 , +.Xr runsvchdir 8 , +.Xr halt 8 , +.Xr poweroff 8 , +.Xr reboot 8 +.Sh AUTHOR +.An Christian Neukirchen , +.Mt chneukirchen@gmail.com . |