Merge branch 'next' of ssh://arne_f@git.ipfire.org/pub/git/ipfire-2.x into next
[people/pmueller/ipfire-2.x.git] / src / initscripts / init.d / vdradmin
1 #!/bin/sh
2 ########################################################################
3 # Begin $rc_base/init.d/vdradmin
4 #
5 # Description : This is a script that starts vdradmind as deamon
6 #
7 # Authors : Arne Fitzenreiter (arne@ipfire.org)
8 #
9 # Version : 01.00
10 #
11 # Notes : Changes in 01.01
12 # : v.2.6.7 needs /var/run/vdradmin dir (earl@ipfire.org)
13 #
14 ########################################################################
15
16 . /etc/sysconfig/rc
17 . ${rc_functions}
18
19 case "${1}" in
20 start)
21 boot_mesg "Starting VDR Webadministration Tool..."
22 mkdir /var/run/vdradmin -p
23 loadproc /usr/bin/vdradmind > /dev/null
24 evaluate_retval
25 ;;
26
27 stop)
28 boot_mesg "Stopping VDR Webadministration Tool..."
29 killproc /usr/bin/vdradmind
30 ;;
31
32 restart)
33 ${0} stop
34 sleep 1
35 ${0} start
36 ;;
37
38 status)
39 statusproc /usr/bin/vdradmind
40 ;;
41
42 *)
43 echo "Usage: ${0} {start|stop|restart|status}"
44 exit 1
45 ;;
46 esac
47
48 # End $rc_base/init.d/vdradmin