Subversion Repositories configs

Rev

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

Rev 3 Rev 16
Line 4... Line 4...
4
#
4
#
5
#  for apcupsd release 3.14.10 (13 September 2011) - redhat
5
#  for apcupsd release 3.14.12 (29 March 2014) - redhat
6
#
6
#
7
# platforms/apccontrol.  Generated from apccontrol.in by configure.
7
# platforms/apccontrol.  Generated from apccontrol.in by configure.
8
#
8
#
9
#  Note, this is a generic file that can be used by most
9
#  Note, this is a generic file that can be used by most
10
#   systems. If a particular system needs to have something
10
#   systems. If a particular system needs to have something
Line 22... Line 22...
22
APCUPSD=/sbin/apcupsd
22
APCUPSD=/sbin/apcupsd
23
SHUTDOWN=/sbin/shutdown
23
SHUTDOWN=/sbin/shutdown
24
SCRIPTSHELL=/bin/sh
24
SCRIPTSHELL=/bin/sh
25
SCRIPTDIR=/etc/apcupsd
25
SCRIPTDIR=/etc/apcupsd
26
WALL=wall
26
WALL=wall
-
 
27
 
-
 
28
export SYSADMIN=root
-
 
29
export APCUPSD_MAIL="/bin/mail"
-
 
30
if [ -f $SCRIPTDIR/config ]; then . $SCRIPTDIR/config ; fi
27
 
31
 
28
#
32
#
29
# Concatenate all output from this script to the events file
33
# Concatenate all output from this script to the events file
30
#  Note, the following kills the script in a power fail situation
34
#  Note, the following kills the script in a power fail situation
31
#   where the disks are mounted read-only.
35
#   where the disks are mounted read-only.
Line 85... Line 89...
85
	if [ -f /etc/apcupsd/powerfail ] ; then
89
	if [ -f /etc/apcupsd/powerfail ] ; then
86
	   printf "Continuing with shutdown."  | ${WALL}
90
	   printf "Continuing with shutdown."  | ${WALL}
87
	fi
91
	fi
88
    ;;
92
    ;;
89
    failing)
93
    failing)
90
	echo "Battery power exhaused on UPS ${2}. Doing shutdown." | ${WALL}
94
	echo "Battery power exhausted on UPS ${2}. Doing shutdown." | ${WALL}
91
    ;;
95
    ;;
92
    timeout)
96
    timeout)
93
	echo "Battery time limit exceeded on UPS ${2}. Doing shutdown." | ${WALL}
97
	echo "Battery time limit exceeded on UPS ${2}. Doing shutdown." | ${WALL}
94
    ;;
98
    ;;
95
    loadlimit)
99
    loadlimit)