dc61694d01
Each attribute in this option should name an apcupsd event and the string value it contains will be executed in a shell in response to that event. See "man apccontrol" for the list of events and what they represent. Now it is easy to hook into the apcupsd event system: services.apcupsd.hooks = { onbattery = ''# shell commands to run when the onbattery event is emitted''; doshutdown = ''# shell commands to notify that the computer is shutting down''; }; |
||
---|---|---|
.. | ||
amqp | ||
audio | ||
backup | ||
databases | ||
games | ||
hardware | ||
logging | ||
misc | ||
monitoring | ||
network-filesystems | ||
networking | ||
printing | ||
scheduling | ||
security | ||
system | ||
torrent | ||
ttys | ||
web-servers | ||
x11 |