mirror of
https://github.com/VDR4Arch/vdr.git
synced 2023-10-10 13:36:52 +02:00
Killing any leftover threads
This commit is contained in:
parent
5c68fc100c
commit
a270907cf5
10
runvdr
10
runvdr
@ -1,13 +1,17 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
DVBDIR='../DVB/driver'
|
DVBDIR="../DVB/driver"
|
||||||
VDRCMD='./vdr -w 60'
|
VDRPRG="./vdr"
|
||||||
|
VDRCMD="$VDRPRG -w 60"
|
||||||
|
|
||||||
while test 1; do
|
KILLPROC="/sbin/killproc -TERM"
|
||||||
|
|
||||||
|
while (true) do
|
||||||
# (cd $DVBDIR; make reload)
|
# (cd $DVBDIR; make reload)
|
||||||
# sleep 3
|
# sleep 3
|
||||||
if $VDRCMD; then exit; fi
|
if $VDRCMD; then exit; fi
|
||||||
date
|
date
|
||||||
echo "restarting VDR"
|
echo "restarting VDR"
|
||||||
|
$KILLPROC $VDRPRG
|
||||||
sleep 10
|
sleep 10
|
||||||
done
|
done
|
||||||
|
Loading…
Reference in New Issue
Block a user