Mailing List archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[vdr] Re: where to place runvdr on suse 8.0



Hi Gerhard,

I placed a script called vdr (see attachement) in the /etc/init.d 
directory and created 2 links to it in /etc/init.d/rc3.d named S07vdr 
and K15vdr (my linux box is running in rnlevel 3, which is network and 
no X). For configuration the file /etc/sysconfig/vdr is used (attached 
as sysconfig_vdr).
So vdr starts right after network and syslog (it needs these two 
services) and usually vdr is ready when the login prompt shows up.
If you use this method, you have to remove the line in inittab

-Eyck

> Hello,
> I am using runvdr to start vdr within my suse 8.0 as
> described on Hubertus Sandmanns homepage.
> -----------------------------</etc/inittab>-------------------------------
> ...
> vdr:235:once:/usr/local/bin/runvdr -s
> /usr/local/bin/vdrshutdown
> 
> It seams, that loading the drivers and vdr is the last thing
> that is done.
> So it last very long till vdr is up and running.
> Is there a better place to start runvdr, so that vdr is
> starting earlier?
> 
> Thanks,
> Gerhard
> 



-- Attached file included as plaintext by Listar --
-- File: vdr

#! /bin/sh
# Copyright (c) 
# All rights reserved.
#
# Author: 
#
# /etc/init.d/vdr
#
#   and symbolic its link
#
# /(usr/)sbin/rcvdr
#
# 
# System startup script for vdr
#
### BEGIN INIT INFO
# Provides: vdr
# Required-Start: $syslog
# Required-Stop:  $syslog
# Default-Start:  3 5
# Default-Stop:   0 1 2 6
# Description:    Starts vdr 
### END INIT INFO
# 
# Source SuSE config (if still necessary, most info has been moved)
test -r /etc/rc.config && . /etc/rc.config

# Check for missing binaries (stale symlinks should not happen)
VDR_BIN=/video/dvb/VDR/vdr
test -x $VDR_BIN || exit 5

# Check for existence of needed config file and read it
VDR_CONFIG=/etc/sysconfig/vdr
test -r $VDR_CONFIG || exit 6
. $VDR_CONFIG

. /etc/rc.status
# First reset status of this service
#rc_reset

case "$1" in
  start)
	echo -n "Starting vdr"
	    #/sbin/hdparm -d 1 /dev/hda
	    #/sbin/hdparm -d 1 /dev/hdc
	    setserial /dev/ttyS0 uart none
	    modprobe lirc_serial
	    /usr/sbin/lircd

            /video/dvb/VDR/runvdr $VDR_ARGS &
	    /video/dvb/vdradmin-0.16/vdradmind.pl
	rc_status -v
	;;
  stop)
	echo -n "Stopping vdr"
	    #kill -9 `cat /var/run/vdr.pid`
	    killall -TERM runvdr
	    sleep 1
	    killall -TERM vdr
	    sleep 1
	    cd /video/dvb/DVB/driver; make rmmod 2>&1 > /dev/null

	    killall lircd
	    modprobe -r lirc_serial
	    #kill `cat /dvb/vdradmin/vdradmind.pid`
	    #/sbin/hdparm -d 0 /dev/hdb
	    #/sbin/hdparm -d 0 /dev/hda
	rc_status -v
	;;
  *)
	N=/etc/init.d/vdr
	# echo "Usage: $N {start|stop|restart|reload|force-reload}" >&2
	echo "Usage: $N {start|stop|restart|force-reload}" >&2
	rc_exit=1
	;;
esac

rc_exit


-- Attached file included as plaintext by Listar --
-- File: sysconfig_vdr

VDR_ARGS="-c /etc/vdr -w 30 -s /etc/vdr/shutdown.sh -o /etc/vdr/mount.sh -v /video/vol0 --terminal=/dev/tty8"

#VDR_ARGS="-C /dev/cdrom -c /etc/vdr -w 60 -s /etc/vdr/shutdown.sh -o /etc/mount.sh -M /etc/mplayer.sh -v /video/vol1"



-- 
Info:
To unsubscribe send a mail to listar@linuxtv.org with "unsubscribe vdr" as subject.



Home | Main Index | Thread Index