POWERD(8)
π POWERD(8) β the UPS-watching bestie π
okay so this is a System Manager's Manual page, bestie, and it's about powerd π«Ά
β¨ NAME β¨
powerd β the UPS monitoring daemon ππ
πΈ SYNOPSIS πΈ
/sbin/powerd [tty]
π¦ DESCRIPTION π¦
So powerd literally just sits there watching the serial port that's hooked up to your UPS device, and if that UPS has been running on battery for longer than a set number of minutes, it will perform an unattended shutdown of the system. no cap, it just does it for you π
powerd needs to watch a tty with modem control properties, periodt. 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, telling them there is a power outage β and this is configured through the powerd.conf file π
π CONFIGURATION FILE π
here's the configuration format, bestie β and note that lines beginning with # are ignored π
MODE <mode>β specifies the mode the UPS should be in. Valid arguements areMONITORandPEER.MONITORbeing the mode to actually watch a UPS serial port, andPEERbeing to listen for a connection from a machine inMONITORmode πMONITOR <device>β specifies which device to monitor while inMONITORmode. 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 areDCD,CAR,CTS, andRNG. also specify if the line beingHIGHorLOWindicates a power failure. since most people may not know this arguement, please use the enclosedupsdetectprogram to automatically find this line π₯
like, genuinely use upsdetect for that one β nobody's out here memorizing serial line states π
NOTIFY <hostname[:port]> <password>β specified inMONITORmode to notify a client running inPEERmode. specify the hostname of the machine, and optional port the daemon is running on, and the password as specified by theirLISTENcommand. see below for more details πLISTEN <hostname> <password>β specified inPEERmode, 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 theMONITORmode machine'sNOTIFYpassword, and thePEERmode'sLISTENpassword πLISTENPORT <port>β specified inPEERmode, specifies the port thatpowerdshould listen on. if you use this arguement,powerdshall not default to using port532, and the machine inMONITORmode must specify the port you use in theirNOTIFYcommand βDELAY <delayinseconds>β specifies how many seconds before notifyinginitof a power outage. note that this doesnt mean that the system will shut down in that many seconds, as it depends on howinitis configured.initusually issues a 2 min shutdown β³USER <username>β specifies which username to drop to from root. the program will reobtain root access only when it needs to, like when notifyinginitthat the power is out. this is simply a security feature, and not needed forpowerdto operate. Note:powerdmust still be run initially as root. it will then drop to the user if, and only if, a username is specified π
π§ ARGUMENTS π§
None: please use the configuration file /etc/powerd.conf, which can be generated with detectups. see detectups(8) for more information β¨
π FILES π
/etc/powerd.confβpowerdconfiguration file/var/run/powerstatusβ indicates line power status
π SEE ALSO π
powerd(8), shutdown(8), wall(1), init(8).
πΈ AUTHOR πΈ
James Brents <James@nistix.com> (with parts of this man page borrowed from all over the Linux community) π«Ά
okay that's the whole page, bestie β and just so you have the receipts: this was from the System Manager's Manual for POWERD(8), mwah π
ππ
π¦ where this page comes from
- opensuse-leap 16.0: powerd 2.0.2-bp160.1.12 Β· GPL-2.0-or-later
- opensuse-leap 16.0: powerd 2.0.2-bp160.1.12 Β· GPL-2.0-or-later
- opensuse-leap 16.0: powerd 2.0.2-bp160.1.12 Β· GPL-2.0-or-later
- opensuse-leap 16.0: powerd 2.0.2-bp160.1.12 Β· GPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms