#!/bin/sh
# chkconfig: 2345 91 91
# description: test script.

. /etc/rc.d/init.d/functions

PATH=/sbin:/bin:/usr/sbin:/usr/bin
PROG=/usr/local/sbin/donothingd
PROGNAME=`basename $PROG`

[ -f $PROG ] || exit 0

case "$1" in
    start)
    	echo -n $"Starting $PROGNAME: "
	daemon $PROG
	echo
	;;

    stop)
	echo -n $"Stopping $PROGNAME:"
	killproc $PROGNAME
	echo
	;;

    status)
	status $PROGNAME
	;;

    restart)
	$0 stop
	$0 start
	;;

    *)
	echo $"Usage: $PROGNAME {start|stop|status|restart}" >&2
	exit 1
	;;
esac

exit 0
