1
0
mirror of https://github.com/VDR4Arch/vdr.git synced 2023-10-10 13:36:52 +02:00
vdr/runvdr

18 lines
291 B
Plaintext
Raw Normal View History

2001-02-24 16:18:43 +01:00
#!/bin/sh
2001-03-31 08:55:37 +02:00
DVBDIR="../DVB/driver"
VDRPRG="./vdr"
VDRCMD="$VDRPRG -w 60"
2001-02-24 16:18:43 +01:00
2001-03-31 08:55:37 +02:00
KILLPROC="/sbin/killproc -TERM"
while (true) do
2001-02-24 16:18:43 +01:00
# (cd $DVBDIR; make reload)
# sleep 3
if $VDRCMD; then exit; fi
date
echo "restarting VDR"
2001-03-31 08:55:37 +02:00
$KILLPROC $VDRPRG
2001-02-24 16:18:43 +01:00
sleep 10
done