#!/bin/sh
#
# beegen	bee generator
#
# chkconfig: 345 90 10
# description:	Generate bees at system startup.

WITHOUT_RC_COMPAT=1

. /etc/init.d/functions

LOCKFILE=/var/lock/subsys/beegen
RETVAL=0

case "$1" in
	start|reload|restart|condrestart|condreload)
		action "Generating bees:" beegen
		RETVAL=$?
		touch "$LOCKFILE"
		;;
	stop|condstop)
		rm -f "$LOCKFILE"
		;;
	status)
		;;
	*)
		msg_usage "${0##*/} {start|stop}"
		RETVAL=1
esac

exit $RETVAL
