87 lines
2.8 KiB
Groff
87 lines
2.8 KiB
Groff
.\" $NetBSD: poffd.8,v 1.8 2002/02/13 08:18:34 ross Exp $
|
|
.\"
|
|
.\" Copyright (c) 1995 MINOURA Makoto.
|
|
.\" All rights reserved.
|
|
.\"
|
|
.\" Redistribution and use in source and binary forms, with or without
|
|
.\" modification, are permitted provided that the following conditions
|
|
.\" are met:
|
|
.\" 1. Redistributions of source code must retain the above copyright
|
|
.\" notice, this list of conditions and the following disclaimer.
|
|
.\" 2. Redistributions in binary form must reproduce the above copyright
|
|
.\" notice, this list of conditions and the following disclaimer in the
|
|
.\" documentation and/or other materials provided with the distribution.
|
|
.\" 3. All advertising materials mentioning features or use of this software
|
|
.\" must display the following acknowledgement:
|
|
.\" This product includes software developed by Minoura Makoto.
|
|
.\" 4. The name of the author may not be used to endorse or promote products
|
|
.\" derived from this software without specific prior written permission
|
|
.\"
|
|
.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
|
|
.\" IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
|
|
.\" OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
|
|
.\" IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
|
|
.\" INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
|
|
.\" NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
|
.\" DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
|
.\" THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
|
.\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
|
|
.\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
.\"
|
|
.Dd June 29, 1995
|
|
.Os
|
|
.Dt POFFD 8 x68k
|
|
.Sh NAME
|
|
.Nm poffd
|
|
.Nd x68k shutdown daemon
|
|
.Sh SYNOPSIS
|
|
.Nm
|
|
.Op Ar shutdown-program
|
|
.Sh DESCRIPTION
|
|
.Nm
|
|
looks at the power switch of x68k.
|
|
When the switch is turned off,
|
|
.Nm
|
|
executes
|
|
.Ar shutdown-program
|
|
(using
|
|
.Pa /bin/sh -c ) .
|
|
.Pp
|
|
If the system is started by x68k's RTC timer,
|
|
.Ar shutdown-program
|
|
is executed when the system's shut down time (predefined using
|
|
other utility, SX-Window Control Panel and
|
|
.Xr rtcalarm 8
|
|
for example) arrives.
|
|
.Pp
|
|
The argument
|
|
.Ar shutdown-program
|
|
may contain the character `%'. It is substituted with a number
|
|
which indicates the way how the system was started:
|
|
.Bl -tag -width xxx -compact -offset indent
|
|
.It 0
|
|
Front power switch
|
|
.It 1
|
|
External (I/O slot) power signal
|
|
.It 2
|
|
RTC alarm
|
|
.El
|
|
.Pp
|
|
This is useful when choosing the shutdown message.
|
|
.Pp
|
|
If the argument
|
|
.Ar shutdown-program
|
|
is omitted,
|
|
.Sq Ic /sbin/shutdown -r +1
|
|
is executed instead.
|
|
.Sh SEE ALSO
|
|
.Xr pow 4 ,
|
|
.Xr rtcalarm 8 ,
|
|
.Xr shutdown 8
|
|
.Sh AUTHORS
|
|
.Nm
|
|
was written by
|
|
.An MINOURA Makoto Aq minoura@flab.fujitsu.co.jp .
|
|
.Sh SPECIAL THANKS
|
|
Liam Hahne Minn \*[Lt]hahne@sail.t.u-tokyo.ac.jp\*[Gt].
|