shutdown(8): markup fixes

This commit is contained in:
uwe 2023-02-15 13:05:21 +00:00
parent c1371239a4
commit 295421a2f9
1 changed files with 26 additions and 20 deletions

View File

@ -1,4 +1,4 @@
.\" $NetBSD: shutdown.8,v 1.37 2023/02/15 10:31:52 uwe Exp $ .\" $NetBSD: shutdown.8,v 1.38 2023/02/15 13:05:21 uwe Exp $
.\" .\"
.\" Copyright (c) 1988, 1991, 1993 .\" Copyright (c) 1988, 1991, 1993
.\" The Regents of the University of California. All rights reserved. .\" The Regents of the University of California. All rights reserved.
@ -40,7 +40,7 @@
.Op Fl Ddfhknprvxz .Op Fl Ddfhknprvxz
.Op Fl b Ar bootstr .Op Fl b Ar bootstr
.Ar time .Ar time
.Op Ar message ... | Ar - .Op Ar message ... No | Fl
.Sh DESCRIPTION .Sh DESCRIPTION
.Nm .Nm
provides an automated shutdown procedure for super-users provides an automated shutdown procedure for super-users
@ -69,7 +69,7 @@ or
to request a kernel core dump. to request a kernel core dump.
If neither the If neither the
.Fl h .Fl h
or nor
.Fl r .Fl r
flags are specified, then flags are specified, then
.Fl d .Fl d
@ -80,8 +80,8 @@ also implies
arranges, in the manner of arranges, in the manner of
.Xr fastboot 8 , .Xr fastboot 8 ,
for the file systems for the file systems
.Em not to be .Em not to be checked
checked on reboot. on reboot.
.It Fl h .It Fl h
The system is halted at the specified The system is halted at the specified
.Ar time , .Ar time ,
@ -135,19 +135,19 @@ or
Prevents Prevents
.Nm .Nm
from detaching from the tty with from detaching from the tty with
.Xr fork 2 Ns / .Xr fork 2 No / Xr exit 3 .
.Xr exit 3 .
.It Ar time .It Ar time
.Ar Time The time at which
is the time at which
.Nm .Nm
will bring the system down and will bring the system down and
may be the word may be the word
.Ar now .Cm now
or a future time in one of two formats: or a future time in one of two formats:
.Ar +number , .Cm + Ns Ar number ,
or or
.Ar [[[[[cc]yy]mm]dd]hh]mm , .Sm off
.Oo Oo Oo Oo Oo Ar cc Oc Ar yy Oc Ar mm Oc Ar dd Oc Ar hh Oc Ar mm ,
.Sm on
where the century, year, month, day, and hour are two digit decimal where the century, year, month, day, and hour are two digit decimal
values, which may be defaulted values, which may be defaulted
to the current system values. to the current system values.
@ -158,20 +158,24 @@ The first form brings the system down
minutes from the current time; the second brings the system down at the minutes from the current time; the second brings the system down at the
absolute time specified. absolute time specified.
If the century is not specified, but the year is, If the century is not specified, but the year is,
the century defaults to 2000 (cc==20, the 21st century) the century defaults to 2000
.Po
.Ar cc No = 20 ,
the 21st century
.Pc
for years between 20 and 99, for years between 20 and 99,
or 2100 for years between 0 and 19. or 2100 for years between 0 and 19.
A leading zero in the A leading zero in the
.Dq yy .Ar yy
value (as with all the others) is value (as with all the others) is
.Em not .Em not
optional. optional.
.It Ar message ... .It Ar message ...
Any other arguments comprise the warning message that is broadcast Any other arguments comprise the warning message that is broadcast
to users currently logged into the system. to users currently logged into the system.
.It Ar - .It Fl
If If
.Ar - .Fl
is supplied as the only argument after the time, the warning message is read is supplied as the only argument after the time, the warning message is read
from the standard input. from the standard input.
.El .El
@ -214,13 +218,13 @@ and should be used to tell the users why the system is
going down, when it will be back up, and to share any other pertinent going down, when it will be back up, and to share any other pertinent
information. information.
.Sh FILES .Sh FILES
.Bl -tag -width /etc/rc.shutdown -compact .Bl -tag -width Pa -compact
.It Pa /etc/nologin .It Pa /etc/nologin
tells Tells
.Xr login 1 .Xr login 1
not to let anyone log in not to let anyone log in
.It Pa /fastboot .It Pa /fastboot
tells Tells
.Xr rc 8 .Xr rc 8
not to run not to run
.Xr fsck 8 .Xr fsck 8
@ -239,7 +243,9 @@ System shutdown commands
.Xr rescue 8 .Xr rescue 8
.Sh BACKWARD COMPATIBILITY .Sh BACKWARD COMPATIBILITY
The hours and minutes in the second time format may be separated by The hours and minutes in the second time format may be separated by
a colon (``:'') for backward compatibility. a colon
.Pq Ql \&:
for backward compatibility.
.Sh HISTORY .Sh HISTORY
A A
.Nm .Nm