3 # This shell script if placed in /etc/apcupsd
4 # will be called by /etc/apcupsd/apccontrol when the
5 # UPS goes back on to the mains after a power failure.
6 # We send an email message to root to notify him.
8 source /etc
/apcemail.conf
11 MSG
="$HOSTNAME Power has returned"
18 @sbindir@
/apcaccess status
19 ) |
$APCUPSD_MAIL $SYSADMIN