prog=$proj-$plugin
exec="/usr/bin/$prog"
configs=(
+ "/usr/share/$proj/$proj-dist.conf" \
"/etc/$proj/$proj.conf" \
"/etc/$proj/plugins/mlnx/mlnx_conf.ini" \
)
stop() {
echo -n $"Stopping $prog: "
killproc -p $pidfile $prog
+ if pgrep $prog &>/dev/null ; then
+ sleep 2
+ pgrep $prog &>/dev/null && \
+ killall $prog
+ fi
retval=$?
echo
[ $retval -eq 0 ] && rm -f $lockfile