summaryrefslogtreecommitdiff
path: root/runvdr
blob: 5ec34585448915889507a0b35313e2fb6f296d44 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/bin/sh

DVBDIR="../DVB/driver"
VDRPRG="./vdr"
VDRCMD="$VDRPRG -w 60"

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