Subversion Repositories configs

Rev

Rev 4 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 4 Rev 17
Line 3... Line 3...
3
# This shell script if placed in /etc/apcupsd
3
# This shell script if placed in /etc/apcupsd
4
# will be called by /etc/apcupsd/apccontrol when the    
4
# will be called by /etc/apcupsd/apccontrol when the    
5
# UPS goes back on to the mains after a power failure.
5
# UPS goes back on to the mains after a power failure.
6
# We send an email message to root to notify him.
6
# We send an email message to root to notify him.
7
#
7
#
8
SYSADMIN=root
-
 
9
APCUPSD_MAIL="/bin/mail"
-
 
10
 
8
 
11
HOSTNAME=`hostname`
9
HOSTNAME=`hostname`
12
MSG="$HOSTNAME Power has returned"
10
MSG="$HOSTNAME UPS $1 Power has returned"
13
#
11
#
14
(
12
(
15
   echo "Subject: $MSG"
13
   echo "Subject: $MSG"
16
   echo " "
14
   echo " "
17
   echo "$MSG"
15
   echo "$MSG"