Mailing List archive

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

[linux-dvb] runvdr-script



Hello

My vdr (vdr 0.72 / dvb 0.82) is running OK, but i got a problem with crashes.

Every now and then vdr crashes with a segmentation fault.
That would be not so bad, but the script which is supposed to restrart vdr in such an event doesn't  work.

I simply get a "Line 20 segmentation fault" and the whole script is ended.

here my (just slightly edited) script:

----------------------------------------- cut ---------------------------------------------------------
#!/bin/sh
#DVBDIR="../DVB/driver"
DVBDIR="./usr/local/DVB/driver"
#VDRPRG="./vdr"
VDRPRG="/usr/local/VDR/vdr"
VDRCMD="$VDRPRG -w 60 -v /video0 -L localhost"
KILLPROC="/sbin/killproc -TERM"
while (true) do
#      (cd $DVBDIR; make reload)
#      sleep 3
      $VDRCMD
      if test $? -ne 1; then exit; fi
      date
      echo "restarting VDR"
      $KILLPROC $VDRPRG
      sleep 10
done
echo "this should never be seen"
----------------------------------------- cut ---------------------------------------------------------

Is there anything i can do to make sure that vdr gets restartert after a segfault?

Gruesse aus Oberhausen
	Thomas Brendel




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



Home | Main Index | Thread Index