Mailing List archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[linux-dvb] Re: runvdr-script
Thomas Brendel wrote:
>
> 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?
Change the 'test' line to
if test $? -eq 0; then exit; fi
This appears to work more reliably.
Klaus
--
_______________________________________________________________
Klaus Schmidinger Phone: +49-8635-6989-10
CadSoft Computer GmbH Fax: +49-8635-6989-40
Hofmark 2 Email: kls@cadsoft.de
D-84568 Pleiskirchen, Germany URL: www.cadsoft.de
_______________________________________________________________
--
Info:
To unsubscribe send a mail to listar@linuxtv.org with "unsubscribe linux-dvb" as subject.
Home |
Main Index |
Thread Index