3 # Copyright 1992, American Power Conversion, Inc.
6 PWRCHUTE=/usr/lib/powerchute
9 # we need to determine if powerchute is running
10 # and if it is, are we in local or network mode?
12 if [ "`ps ax | grep pwrchu | grep -v grep 2>/dev/null`" != "" ]; then
13 #powerchute is running
14 #check to see if usetcp is set to no
16 if grep -iqs "usetcp.*no" /etc/powerchute.ini >/dev/null 2>/dev/null; then
17 # usetcp is set to no.
18 echo "Can't run more than one version of "
19 echo "PowerChute Client in Local Mode."
21 exec $PWRCHUTE/_xpwrchute
24 # powerchute is not running. Go ahead and launch it.
25 exec $PWRCHUTE/_xpwrchute