Add a check for an existing ibpd daemon before starting another.
This prevents multiple "service ofed-mic start" commands from
launching multiple copies of the ibpd daemon, spawning more
driver worker threads than intended.
if [ "$nohost" -eq 0 ]; then
echo -n "host"
- (/usr/sbin/ibpd &) &&
+ if [ ! "$(pidof /usr/sbin/ibpd)" ]; then
+ (/usr/sbin/ibpd &)
+ retval=$?
+ fi
modprobe ib_uverbs &&
modprobe ibp_server &&
modprobe ibp_cm_server &&
modprobe ibp_sa_server &&
modprobe ibscif
- retval=$?
+ retval+=$?
[ $retval -eq 0 ] && eval $_success || eval $_failure
fi