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

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

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