summaryrefslogtreecommitdiff
path: root/runvdr
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2001-03-31 08:55:37 +0200
committerKlaus Schmidinger <vdr@tvdr.de>2001-03-31 08:55:37 +0200
commita270907cf575b4dfe05432fc214624c105b9071a (patch)
tree77c448d15cc179682ff0dd0eefb2a93260c4a4ab /runvdr
parent5c68fc100c87bf677932852fbcd446199c03fecb (diff)
downloadvdr-a270907cf575b4dfe05432fc214624c105b9071a.tar.gz
vdr-a270907cf575b4dfe05432fc214624c105b9071a.tar.bz2
Killing any leftover threads
Diffstat (limited to 'runvdr')
-rwxr-xr-xrunvdr10
1 files changed, 7 insertions, 3 deletions
diff --git a/runvdr b/runvdr
index 83b2ea62..092b3ab9 100755
--- a/runvdr
+++ b/runvdr
@@ -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