summaryrefslogtreecommitdiff
path: root/runvdr
blob: 0eb67822d4ff188ab8bef0b3984737d0d9a989aa (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 $? != 1; then exit; fi
      date
      echo "restarting VDR"
      $KILLPROC $VDRPRG
      sleep 10
      done