From 5e0ee042c75296fb78567638b2768df5a262ad7b Mon Sep 17 00:00:00 2001 From: Klaus Schmidinger Date: Sat, 24 Feb 2001 16:18:43 +0100 Subject: Implemented watchdog --- runvdr | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100755 runvdr (limited to 'runvdr') diff --git a/runvdr b/runvdr new file mode 100755 index 00000000..83b2ea62 --- /dev/null +++ b/runvdr @@ -0,0 +1,13 @@ +#!/bin/sh + +DVBDIR='../DVB/driver' +VDRCMD='./vdr -w 60' + +while test 1; do +# (cd $DVBDIR; make reload) +# sleep 3 + if $VDRCMD; then exit; fi + date + echo "restarting VDR" + sleep 10 + done -- cgit v1.2.3