summaryrefslogtreecommitdiff
path: root/runvdr
diff options
context:
space:
mode:
Diffstat (limited to 'runvdr')
-rwxr-xr-xrunvdr13
1 files changed, 9 insertions, 4 deletions
diff --git a/runvdr b/runvdr
index 83b2ea6..5ec3458 100755
--- a/runvdr
+++ b/runvdr
@@ -1,13 +1,18 @@
#!/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
+ $VDRCMD
+ if test $? -ne 1; then exit; fi
date
echo "restarting VDR"
+ $KILLPROC $VDRPRG
sleep 10
done