#!/bin/sh
########################################################################
# Begin $rc_base/init.d/vdradmin
#
# Description : This is a script that starts vdradmind as deamon
#
# Authors     : Arne Fitzenreiter (arne@ipfire.org)
#
# Version     : 01.00
#
# Notes       : Changes in 01.01
#             : v.2.6.7 needs /var/run/vdradmin dir (earl@ipfire.org)
#
########################################################################

. /etc/sysconfig/rc
. ${rc_functions}

case "${1}" in
	start)
		boot_mesg "Starting VDR Webadministration Tool..."
		mkdir /var/run/vdradmin -p
		loadproc /usr/bin/vdradmind > /dev/null
		evaluate_retval
		;;
		
	stop)
		boot_mesg "Stopping VDR Webadministration Tool..."
		killproc /usr/bin/vdradmind
		;;

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

	status)
		statusproc /usr/bin/vdradmind
		;;

	*)
		echo "Usage: ${0} {start|stop|restart|status}"
		exit 1
		;;
esac

# End $rc_base/init.d/vdradmin
