22c0b9848be76e39ab23289d027659bd6d1f0300
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 .
/etc
/apcupsd
/apcupsd_mail.conf
10 MSG
="$HOSTNAME Power has returned"
15 /usr
/sbin
/apcaccess status
16 ) |
$MAILPROG -h $MAILHOST -f $FROM -s "$MSG" $TO