#! /bin/sh
#
# cisd         Start/Stop CIS daemon
#
# description: The CIS (Cluster Information Service) daemon collects \
#	       information about cluster of Linux PC's. It provides this \
#              information to clients via RPC calls. It requires portmaper. \
# processname: cisd

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

[ -f /usr/sbin/cisd ] || exit 0

# See how we were called.
case "$1" in
  start)
	echo -n "Starting CIS daemon: "
	daemon cisd

	echo
	touch /var/lock/subsys/cisd
	;;
  stop)
	echo -n "Stopping CIS daemon: "
	killproc cisd

	echo
	rm -f /var/lock/subsys/cisd
	;;
  status)
	status cisd
	;;
  restart|reload)
	$0 stop
	$0 start
	;;
  *)
	echo "Usage: cisd {start|stop|status|restart|reload}"
	exit 1
esac

exit 0
