#!/bin/sh

###############################################################################
#
# chkconfig: 345 80 15
#
# description: Manages the Front Panel Interface Controller daemon (FPIC).
#
# processname: fpic
#
# pidfile: /var/run/fpicd.pid
#
###############################################################################

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

# Branch based on command line options.
case "$1" in
  start)
	echo -n "Starting FPIC: "
	daemon /usr/ins/intel/bin/fpicd
        echo 
	;;
  stop)
	echo -n "Stopping FPIC: "
	killproc fpicd -INT
	echo 
	;;
  restart)
	$0 stop
	$0 start
	;;
  reload)
	echo -n "Reloading FPIC: "
	killproc fpicd -HUP
	echo
	;;
  *)
	echo "Usage: $0 {start|stop|restart|reload}"
	exit 1
esac

exit 0
