mirror of
https://github.com/novatiq/packages.git
synced 2026-04-30 15:38:40 +01:00
apcupsd: move from old packages and Makefile updated
Signed-off-by: Othmar Truniger <Othmar Truniger github@truniger.ch>
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
#!/bin/sh
|
||||
#
|
||||
# This shell script if placed in /etc/apcupsd
|
||||
# will be called by /etc/apcupsd/apccontrol when apcupsd
|
||||
# restores contact with the UPS (i.e. the serial connection is restored).
|
||||
# We send an email message to root to notify him.
|
||||
#
|
||||
. /etc/apcupsd/apcupsd_mail.conf
|
||||
|
||||
MSG="$HOSTNAME Communications with UPS restored"
|
||||
#
|
||||
(
|
||||
echo "$MSG"
|
||||
echo " "
|
||||
/usr/sbin/apcaccess status
|
||||
) | $MAILPROG -h $MAILHOST -f $FROM -s "$MSG" $TO
|
||||
exit 0
|
||||
Reference in New Issue
Block a user