NetBSD/share/man/man8/man8.x68k/poffd.8

87 lines
2.8 KiB
Groff
Raw Normal View History

.\" $NetBSD: poffd.8,v 1.8 2002/02/13 08:18:34 ross Exp $
1998-01-09 11:03:16 +03:00
.\"
1996-05-05 16:17:03 +04:00
.\" 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
1996-05-05 16:17:03 +04:00
.Sh NAME
.Nm poffd
2001-12-26 05:22:56 +03:00
.Nd x68k shutdown daemon
1996-05-05 16:17:03 +04:00
.Sh SYNOPSIS
.Nm
1996-05-05 16:17:03 +04:00
.Op Ar shutdown-program
.Sh DESCRIPTION
.Nm
1996-05-05 16:17:03 +04:00
looks at the power switch of x68k.
When the switch is turned off,
.Nm
1996-05-05 16:17:03 +04:00
executes
.Ar shutdown-program
2001-12-26 05:22:56 +03:00
(using
.Pa /bin/sh -c ) .
.Pp
1996-05-05 16:17:03 +04:00
If the system is started by x68k's RTC timer,
.Ar shutdown-program
is executed when the system's shut down time (predefined using
2001-12-26 05:22:56 +03:00
other utility, SX-Window Control Panel and
1996-05-05 16:17:03 +04:00
.Xr rtcalarm 8
for example) arrives.
2001-12-26 05:22:56 +03:00
.Pp
1996-05-05 16:17:03 +04:00
The argument
.Ar shutdown-program
may contain the character `%'. It is substituted with a number
which indicates the way how the system was started:
2001-12-26 05:22:56 +03:00
.Bl -tag -width xxx -compact -offset indent
.It 0
Front power switch
.It 1
External (I/O slot) power signal
.It 2
RTC alarm
1996-05-05 16:17:03 +04:00
.El
2001-12-26 05:22:56 +03:00
.Pp
1996-05-05 16:17:03 +04:00
This is useful when choosing the shutdown message.
2001-12-26 05:22:56 +03:00
.Pp
1996-05-05 16:17:03 +04:00
If the argument
.Ar shutdown-program
2001-12-26 05:22:56 +03:00
is omitted,
.Sq Ic /sbin/shutdown -r +1
is executed instead.
1996-05-05 16:17:03 +04:00
.Sh SEE ALSO
.Xr pow 4 ,
.Xr rtcalarm 8 ,
.Xr shutdown 8
2001-09-11 03:32:29 +04:00
.Sh AUTHORS
.Nm
2001-12-26 05:22:56 +03:00
was written by
.An MINOURA Makoto Aq minoura@flab.fujitsu.co.jp .
1996-05-05 16:17:03 +04:00
.Sh SPECIAL THANKS
Liam Hahne Minn \*[Lt]hahne@sail.t.u-tokyo.ac.jp\*[Gt].