mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-23 00:43:28 +00:00
Fixing missing brace in startup script and wrong path to mail binary.
This commit is contained in:
parent
746652b2e2
commit
1c4d2ad037
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=50854
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user