#! /bin/sh



case "$1" in

    start)
	echo "Starting cron"
	cron
	;;

    stop)
	echo "Stopping cron"
	kill -USR1 `pidof cron`
	if [ "$?" = "0" ]; then echo "Done"
	else                    echo "FAILED"; fi
	;;

    restart)
	$0 stop
	sleep 1
	$0 start
	;;

    *)
	echo "Usage: $0 (start|stop|restart)"
	exit 1
	;;

esac

exit 0

