Created the vdradmin package for Ipfire

This commit is contained in:
Stefan Schantl
2009-03-01 17:02:32 +01:00
parent f902119c1c
commit c0b229ae77
5 changed files with 378 additions and 0 deletions

View File

@@ -0,0 +1,50 @@
#!/bin/sh
########################################################################
# Begin $rc_base/init.d/vdradmind
#
# Description : This is a script that starts vdradmind as deamon
#
# Authors : Arne Fitzenreiter (arne@ipfire.org)
#
# Version : 01.00
#
# Notes :
#
########################################################################
. /etc/sysconfig/rc
. ${rc_functions}
case "${1}" in
start)
boot_mesg "Starting VDR Webadministration Tool..."
if [ "$(ps -A | grep vdradmind)" != "" ]; then
boot_mesg "Error! Already running!"
echo_failure
exit 1;
fi
loadproc /opt/vdradmin/vdradmind.pl
;;
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/vdr