vdr stopping and not restarting

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

 



I am running vdr 1.3.26, during the night it is changing state to
SetPlayMode: 0 and the only way to bring it back up is to kill vdr,
unload the skystar2 module and restart.

I am using a modified runvdr and starting as so:
sudo ./runvdr '-P"xine -r" -P"femon"'

runvdr:

# $Id: runvdr 1.14 2004/11/21 11:30:00 kls Exp $

export LD_ASSUME_KERNEL=2.4.1
export LANG=fr_FR

DVBDIR="/lib/modules/2.6.11.10-epia/kernel/drivers/media/dvb/b2c2"
VDRPRG="./vdr"
VDRCMD="$VDRPRG -w 60 $*"

LSMOD="`/sbin/lsmod | grep -w 'skystar2' | wc -l`"
KILL="/usr/bin/killall -q -TERM"

# Load driver if it hasn't been loaded already:
if [ $LSMOD -eq 0 ] ; then
   (cd $DVBDIR; /sbin/modprobe skystar2)
   fi

while (true) do
      su $VDRUSR -c "$VDRCMD"
      if test $? -eq 0 -o $? -eq 2; then exit; fi
      date
      echo "restarting VDR"
      $KILL $VDRPRG
      sleep 10
      (cd $DVBDIR; /sbin/modprobe -r skystar2; /sbin/modprobe skystar2)
      date
      done

I am not a super shell scripter and I know the problem is in here
somewhere.

Cheers

Tony



[Index of Archives]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Util Linux NG]     [Xfree86]     [Big List of Linux Books]     [Fedora Users]     [Fedora Women]     [ALSA Devel]     [Linux USB]

  Powered by Linux