aboutsummaryrefslogtreecommitdiff
path: root/sysutils/apcupsd
diff options
context:
space:
mode:
authorLars Koeller <lkoeller@FreeBSD.org>2001-12-02 13:07:25 +0000
committerLars Koeller <lkoeller@FreeBSD.org>2001-12-02 13:07:25 +0000
commit1c4d2ad037a0797296db8337dddc138f85f7c4c2 (patch)
tree978a22684e4469c0a93163480929bcecf5aece2e /sysutils/apcupsd
parent746652b2e2498cf2b4b4293448e4111677d02b87 (diff)
downloadports-1c4d2ad037a0797296db8337dddc138f85f7c4c2.tar.gz
ports-1c4d2ad037a0797296db8337dddc138f85f7c4c2.zip
Notes
Diffstat (limited to 'sysutils/apcupsd')
-rw-r--r--sysutils/apcupsd/files/apcupsd.sh.sample4
1 files changed, 3 insertions, 1 deletions
diff --git a/sysutils/apcupsd/files/apcupsd.sh.sample b/sysutils/apcupsd/files/apcupsd.sh.sample
index a4b8c95d3e9c..923d6b98ad2e 100644
--- a/sysutils/apcupsd/files/apcupsd.sh.sample
+++ b/sysutils/apcupsd/files/apcupsd.sh.sample
@@ -19,7 +19,7 @@ apcupsd_enable=${apcupsd_enable:-YES}
apcupsd_program=${apcupsd_program:-${PREFIX}/sbin/apcupsd}
apcupsd_flags=${apcupsd_flags:-"--kill-on-powerfail"}
apcupsd_pidfile=${apcupsd_pidfile:-/var/run/apcupsd.pid}
-apcupsd_lockfile=${apcupsd_pidfile:-/var/spool/lock/apcupsd.lock
+apcupsd_lockfile=${apcupsd_pidfile:-/var/spool/lock/apcupsd.lock}
case $1 in
start)
@@ -41,6 +41,8 @@ case $1 in
PID=`cat ${apcupsd_pidfile}`
kill -KILL $PID || return=" Failed."
rm -f ${apcupsd_pidfile}
+ # some slaves won't die
+ killall apcupsd
else
return=" Failed."
fi