Formatting improvements.

This commit is contained in:
wiz 2001-12-26 02:22:56 +00:00
parent 4e2d752368
commit 4b425cbbb3
1 changed files with 21 additions and 19 deletions

View File

@ -1,4 +1,4 @@
.\" $NetBSD: poffd.8,v 1.6 2001/09/10 23:32:30 wiz Exp $ .\" $NetBSD: poffd.8,v 1.7 2001/12/26 02:22:56 wiz Exp $
.\" .\"
.\" Copyright (c) 1995 MINOURA Makoto. .\" Copyright (c) 1995 MINOURA Makoto.
.\" All rights reserved. .\" All rights reserved.
@ -33,7 +33,7 @@
.Dt POFFD 8 x68k .Dt POFFD 8 x68k
.Sh NAME .Sh NAME
.Nm poffd .Nm poffd
.Nd "X68k shutdown deamon" .Nd x68k shutdown daemon
.Sh SYNOPSIS .Sh SYNOPSIS
.Nm .Nm
.Op Ar shutdown-program .Op Ar shutdown-program
@ -44,41 +44,43 @@ When the switch is turned off,
.Nm .Nm
executes executes
.Ar shutdown-program .Ar shutdown-program
.Po (using
using .Pa /bin/sh -c ) .
.Pa /bin/sh -c .Pp
.Pc .
If the system is started by x68k's RTC timer, If the system is started by x68k's RTC timer,
.Ar shutdown-program .Ar shutdown-program
is executed when the system's shut down time (predefined using is executed when the system's shut down time (predefined using
other utility, SX-Window Control Pannel and other utility, SX-Window Control Panel and
.Xr rtcalarm 8 .Xr rtcalarm 8
for example) arrives. for example) arrives.
.Pp
The argument The argument
.Ar shutdown-program .Ar shutdown-program
may contain the character `%'. It is substituted with a number may contain the character `%'. It is substituted with a number
which indicates the way how the system was started: which indicates the way how the system was started:
.Bl -item -compact -offset indent .Bl -tag -width xxx -compact -offset indent
.It .It 0
0: Front power switch Front power switch
.It .It 1
1: External (I/O slot) power signal External (I/O slot) power signal
.It .It 2
2: RTC alarm RTC alarm
.El .El
.Pp
This is useful when choosing the shutdown message. This is useful when choosing the shutdown message.
.Pp
If the argument If the argument
.Ar shutdown-program .Ar shutdown-program
is omitted, `/sbin/shutdown -r +1' is executed instead. is omitted,
.Sq Ic /sbin/shutdown -r +1
is executed instead.
.Sh SEE ALSO .Sh SEE ALSO
.Xr pow 4 , .Xr pow 4 ,
.Xr rtcalarm 8 , .Xr rtcalarm 8 ,
.Xr shutdown 8 .Xr shutdown 8
.Sh AUTHORS .Sh AUTHORS
.Nm .Nm
was written by MINOURA Makoto <minoura@flab.fujitsu.co.jp>. was written by
.An MINOURA Makoto Aq minoura@flab.fujitsu.co.jp .
.Sh SPECIAL THANKS .Sh SPECIAL THANKS
Liam Hahne Minn <hahne@sail.t.u-tokyo.ac.jp>. Liam Hahne Minn <hahne@sail.t.u-tokyo.ac.jp>.