if [ -s /etc/init.d/functions ]; then
# RHEL / CentOS / SL / Fedora
. /etc/init.d/functions
+ _daemon() { daemon ${1+"$@"}; }
+ _success() { success; echo; }
+ _failure() { failure; echo; }
elif [ -s /lib/lsb/init-functions ]; then
# SLES / OpenSuSE / Debian
. /lib/lsb/init-functions
- daemon() { /sbin/start_daemon ${1+"$@"}; }
- success() { log_success_msg; }
- failure() { log_failure_msg; }
+ _daemon() { /sbin/start_daemon ${1+"$@"}; }
+ _success() { log_success_msg; }
+ _failure() { log_failure_msg; }
elif [ -s /etc/rc.status ]; then
# Older SuSE
. /etc/rc.status
- daemon() { /sbin/start_daemon ${1+"$@"}; }
- success() { rc_status -v; }
- failure() { rc_status -v; }
+ _daemon() { /sbin/start_daemon ${1+"$@"}; }
+ _success() { rc_status -v; }
+ _failure() { rc_status -v; }
fi
start()
{
echo -n "Starting ibacm daemon:"
- daemon @prefix@/sbin/ibacm
+ _daemon @prefix@/sbin/ibacm
if [[ $RETVAL -eq 0 ]]; then
- success
+ _success
else
- failure
+ _failure
fi
- echo
}
stop()
echo -n "Stopping ibacm daemon:"
killproc -p $pidfile ibacm
if [[ $RETVAL -eq 0 ]]; then
- success
+ _success
else
- failure
+ _failure
fi
rm -f $subsys
- echo
}
status()
RETVAL=0
fi
if [[ $RETVAL -eq 0 ]]; then
- success
+ _success
else
- failure
+ _failure
fi
- echo
}
restart ()