powerd − UPS monitoring daemon
monitors the serial port connected to an UPS device and will
perform an unattended shutdown of the system if the UPS is
on battery longer than a specified number of minutes.
powerd needs to watch a tty with modem control
properties. Please refer to the powerd documentation
for further information.
powerd also has the capabilities of notifying other clients on the network that may have a UPS but not be connected to the serial line that there is a power outage, and id configured through the powerd.conf file
Here is the
Lines beginning with ’#’ are ignored.
specifies the mode the UPS should be in. Valid arguements are MONITOR and PEER MONITOR being the mode to actually watch a UPS serial port, and PEER being to listen for a connection from a machine in MONITOR mode
Specifies which device to monitor while in MONITOR mode. Specify an actual device file. Example: /dev/ttyS0
POWERFAIL <line> <high|low>
Specifies which lines on the
serial ports indicate that the power is out. Valid
arguements are DCD, CAR, CTS, and RNG. Also specify if the
line being HIGH or LOW indicates a power failure.
Since most people may not know this arguement, Please use the enclosed upsdetect program to automatically find this line.
NOTIFY <hostname[:port]> <password>
Specified in MONITOR mode to notify a client running in PEER mode. Specify the hostname of the machine, and optional port the daemon is running on, And the password as specified by their LISTEN command. See below for more details.
LISTEN <hostname> <password>
Specified in PEER mode, specifies a hostname that is allowed to notify us of when the power is out, and the password they shall give us to authenticate themselves. The 2 passwords should match on the MONITOR mode machines NOTIFY password, and the PEER modes LISTEN password.
Specified in PEER mode, specifies the port that powerd should listen on. If you use this arguement, powerd shall not default to using port 532, and the machine in MONITOR mode must specify the port you use in their NOTIFY command.
Specifies how many seconds before notifying init of a power outage. Note that this doesnt mean that the system will shut down in that many seconds, as it depends on how init is configured. Init usually issues a 2 min shutdown.
Specifies which username to drop to from root. The program will reobtain root access only when it needs to, Like when notifying init that the power is out. This is simply a security feature, and not needed for powerd to operate. Note: powerd must still be run initially as root. It will then drop to the user if, and only if, a username is specified.
None: Please use the configuration file /etc/powerd.conf which can be generated with detectups. See detectups(8) for more information
powerd configuration file
indicates line power status
init is what actually issues the
James Brents <James@nistix.com> (with parts of this man page borrowed from all over the Linux community)
More Linux Commands
get_escdelay(3ncurses) - curses thread support (Man Page)...
This implementation can be configured to provide rudimentary support for multi-threaded applications. This makes a different set of libraries, e.g., libncursest
rstartd(1) - a sample implementation of a Remote Start rsh h
Rstartd is an implementation of a Remote Start helper as defined in A Flexible Remote Execution Protocol Based on rsh. This document describes the peculiarities
fstab-decode(8) - run a command with fstab-encoded arguments
fstab-decode decodes escapes in the specified ARGUMENTs and uses them to run COMMAND. The argument escaping uses the same rules as path escaping in /etc/fstab,
gdiffmk(1) - mark differences between groff/nroff/troff file
gdiffmk compares two groff(1), nroff(1), or troff(1) documents, file1 and file2, and creates an output which is file2 with added margin character (.mc) commands
recvfrom(2) - receive a message from a socket (Man Page)....
The recv(), recvfrom(), and recvmsg() calls are used to receive messages from a socket. They may be used to receive data on both connectionless and connection-o
pcre32_jit_exec(3) Perl-compatible regular expressions......
This function matches a compiled regular expression that has been successfully studied with one of the JIT options against a given subject string, using a match
glRasterPos4iv(3gl) - specify the raster position for pixel
The GL maintains a 3D position in window coordinates. This position, called the raster position, is used to position pixel and bitmap write operations. It is ma
mcheck_check_all(3) heap consistency checking (Man Page)....
The mcheck() function installs a set of debugging hooks for the malloc(3) family of memory-allocation functions. These hooks cause certain consistency checks to
dosfslabel(8) - set or get MS-DOS filesystem label (ManPage)
fatlabel set or gets a MS-DOS filesystem label from a given device. If the label is omitted, then the label name of the specified device is written on the stand
gnutls_privkey_get_type(3) - API function - Linux man page
This function will return the type of the private key. This is actually the type of the subsystem used to set this private key. RETURNS a member of the gnutls_p
XMatchVisualInfo(3) - obtain visual information and visual s
XMatchVisualInfo.3 - The XGetVisualInfo function returns a list of visual structures that have attributes equal to the attributes specified by vinfo_template. I
XcmsSetWhiteAdjustProc(3) - modifying CCC attributes........
The XcmsSetWhitePoint function changes the Client White Point in the specified CCC. Note that the pixel member is ignored and that the color specification is le