Killing any leftover threads

This commit is contained in:
Klaus Schmidinger 2001-03-31 08:55:37 +02:00
parent 5c68fc100c
commit a270907cf5
1 changed files with 7 additions and 3 deletions

10
runvdr
View File

@ -1,13 +1,17 @@
#!/bin/sh
DVBDIR='../DVB/driver'
VDRCMD='./vdr -w 60'
DVBDIR="../DVB/driver"
VDRPRG="./vdr"
VDRCMD="$VDRPRG -w 60"
while test 1; do
KILLPROC="/sbin/killproc -TERM"
while (true) do
# (cd $DVBDIR; make reload)
# sleep 3
if $VDRCMD; then exit; fi
date
echo "restarting VDR"
$KILLPROC $VDRPRG
sleep 10
done