#!/bin/sh
#
# rdma       Initialize the iWARP/InfiniBand/RDMA stack in the kernel
#
# chkconfig: 2345 25 75
# description: Starts/Stops InfiniBand ACM service
#
### BEGIN INIT INFO
# Provides:       rdma
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Required-Start: $syslog
# Should-Start:
# Should-Stop:
# Short-Description: Initialize the iWARP/InfiniBand/RDMA stack in the kernel
# Description: Initialize the iWARP/InfiniBand/RDMA stack in the kernel.
### END INIT INFO

# Do not load RH compatibility interface.
WITHOUT_RC_COMPAT=1

# Source function library.
. /etc/init.d/functions

RETVAL=0


start()
{
	/usr/libexec/rdma-init-kernel
	RETVAL=$?
	return $RETVAL
}

# See how we were called.
case "$1" in
	start)
		start
		;;
	stop)
		# Nothing to do
		;;
	reload)
		start
		;;
	restart)
		start
		;;
	condstop)
		# Nothing to do
		;;
	condrestart)
		# Nothing to do
		;;
	condreload)
		# Nothing to do
		;;
	status)
		# Nothing to do
		;;
	*)
		msg_usage "${0##*/} {start|stop|reload|restart|condstop|condrestart|condreload|status}"
		RETVAL=1
esac

exit $RETVAL
