Mailing List archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[vdr] Re: Start script hangs my PC
> -----Original Message-----
> From: vdr-bounce@linuxtv.org [mailto:vdr-bounce@linuxtv.org] On Behalf
Of
> Otherwise try to add some echo for debugging behind the ./runvdr -
maybe
> it
> got stuck in ./runvdr ?
I don't think so, ./runvdr is the original one.
Note that it works PERFECTLY if I do a "manual" start.
After logging in I type: /etc/init.d/vdr start and everything works
fine.
I also used rc3.d (runlevel 3 for me too (SuSE)) and S99vdr.
Here is my ./runvdr
DVBDIR="../DVB/driver"
VDRPRG="./vdr"
VDRCMD="$VDRPRG -w 60 -c /etc/vdr -v /home/video -s 'shutdown -h now'
$*"
LSMOD="`/sbin/lsmod | grep -w '^dvb' | wc -l`"
KILL="/usr/bin/killall -q -TERM"
DVDCSS_METHOD=key
# Load driver if it hasn't been loaded already:
if [ $LSMOD -eq 0 ] ; then
(cd $DVBDIR; make insmod)
fi
while (true) do
su -c "$VDRCMD" $VDRUSR
if test $? -eq 0; then exit; fi
date
echo "restarting VDR"
$KILL $VDRPRG
sleep 10
(cd $DVBDIR; make rmmod; make insmod)
date
done
Bye
Luca
--
Prendi GRATIS l'email universale che... risparmia: http://www.email.it/f
Sponsor:
Un regalo, mille possibilità di scelta, una più preziosa dell'altra.
Clicca qui: http://adv2.email.it/cgi-bin/foclick.cgi?mid=613&d=25-9
Home |
Main Index |
Thread Index