.\" $NetBSD: lambd.8,v 1.5 2001/12/03 19:03:24 wiz Exp $ .\" .\" Copyright (C) 2001 WIDE Project. 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. Neither the name of the project nor the names of its contributors .\" may be used to endorse or promote products derived from this software .\" without specific prior written permission. .\" .\" THIS SOFTWARE IS PROVIDED BY THE PROJECT AND CONTRIBUTORS ``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 PROJECT OR CONTRIBUTORS 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 July 14, 2001 .Dt LAMBD 8 .Os .Sh NAME .Nm lambd .Nd shutdown switch monitoring daemon for Wildlab LAMB .Sh SYNOPSIS .Nm .Op Fl Ldfn .Op Fl M Ar str .Op Ar usec .Sh DESCRIPTION .Nm monitors shutdown switch on Wildlab LAMB, and issues .Dq Li shutdown -h now if pressed. It also blinks LED every 1 second, or the interval specified by .Ar usec . Normally .Nm becomes a daemon on invocation. .Pp The following options are available: .Bl -tag -width indent .It Fl L Instead of heartbeat, LED will present the current load average. A single blink means 0.5 in load average. therefore, if you see 4 blinks, the current load average would be 2. .Ar usec argument decides the interval between LED blinks. .It Fl M Ar str Show an alphanumeric string, .Ar str , in morse code on LED. .Ar usec argument decides the speed of the morse code. .It Fl d The flag lets .Nm generate more messages, and forbids it from shutting down the machine even if the shutdown button is pressed. .It Fl f .Nm will run in foreground mode .Pq do not become daemon . .It Fl n Avoid any hardware I/O accesses from .Nm Ns . .El .Sh SEE ALSO .Pa http://www.wildlab.com/