#!/bin/bash

# init file for bsignd
#
# description: license daemon for InterVideo software (LinDVD)
#
# processname: bsignd 
# chkconfig: 2345 45 96


# source function library
if [ -f /etc/rc.d/init.d/functions ]; then
	. /etc/rc.d/init.d/functions
	DAEMON=daemon
else
	. /etc/rc.status
	DAEMON=startproc
fi

case "$1" in
  start)
	echo -n "Starting bsignd: "
        $DAEMON /usr/sbin/bsignd
	touch /var/lock/subsys/bsignd
	echo
	;;
  stop)
	echo -n "Shutting down bsignd: "
	killproc bsignd
	rm -f /var/lock/subsys/bsignd
	echo
	;;
  restart)
        $0 stop
        $0 start
        ;;
  status)
        status bsignd
        ;;
  *)
	echo "Usage: bsignd {start|stop|restart|status}"
	exit 1
esac

exit 0
