so that only main process is handled, not sending to processes just by
same name
# Stop daemons.
if [ -f $lockfile ]; then
msg_stopping "$svname"
- killproc $prog
+ killproc -p $pidfile $prog
+ RETVAL=$?
rm -f $lockfile $pidfile >/dev/null 2>&1
else
msg_not_running "$svname"
if [ -f $lockfile ]; then
checkconfig
msg_reloading "$svname"
- killproc $prog -HUP
+ killproc -p $pidfile $prog -HUP
RETVAL=$?
else
msg_not_running "$svname"
checkconfig 1
;;
status)
- status $prog
+ status --pidfile $pidfile $prog
RETVAL=$?
;;
*)