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

Replaced 'killproc' with 'killall' in 'runvdr'

This commit is contained in:
Klaus Schmidinger 2002-03-16 16:22:12 +01:00
parent f7d6a96935
commit 986f467993
3 changed files with 10 additions and 3 deletions

View File

@ -230,3 +230,6 @@ Bernd Schweikert <bernd.schweikert@dit-gmbh.de>
Mirko Günther <mi.guenther@ib-helms.de> Mirko Günther <mi.guenther@ib-helms.de>
for suggesting the -m command line option for suggesting the -m command line option
for suggesting the SVDRP command VOLU for suggesting the SVDRP command VOLU
Achim Lange <Achim_Lange@t-online.de>
for replacing 'killproc' with 'killall' in 'runvdr' to make it work on Debian

View File

@ -1107,3 +1107,7 @@ Video Disk Recorder Revision History
(like the EPG descriptions or the results of commands executed from the (like the EPG descriptions or the results of commands executed from the
"Commands" menu). "Commands" menu).
- Fixed high CPU usage in transfer mode. - Fixed high CPU usage in transfer mode.
- Replaced 'killproc' with 'killall' in 'runvdr', since apparently 'killproc'
is not available by default on some Linux distributions, whereas 'killall' is.
Please check if your system provides 'killall' - if it doesn't, please change
this back in 'runvdr' and report this (thanks to Achim Lange).

6
runvdr
View File

@ -18,14 +18,14 @@
# See the main source file 'vdr.c' for copyright information and # See the main source file 'vdr.c' for copyright information and
# how to reach the author. # how to reach the author.
# #
# $Id: runvdr 1.8 2001/07/27 07:35:19 kls Exp $ # $Id: runvdr 1.9 2002/03/16 16:22:12 kls Exp $
DVBDIR="../DVB/driver" DVBDIR="../DVB/driver"
VDRPRG="./vdr" VDRPRG="./vdr"
VDRCMD="$VDRPRG -w 60 $*" VDRCMD="$VDRPRG -w 60 $*"
LSMOD="`/sbin/lsmod | grep -w '^dvb' | wc -l`" LSMOD="`/sbin/lsmod | grep -w '^dvb' | wc -l`"
KILLPROC="/sbin/killproc -TERM" KILL="/usr/bin/killall -q -TERM"
# Load driver if it hasn't been loaded already: # Load driver if it hasn't been loaded already:
if [ $LSMOD -eq 0 ] ; then if [ $LSMOD -eq 0 ] ; then
@ -37,7 +37,7 @@ while (true) do
if test $? -eq 0; then exit; fi if test $? -eq 0; then exit; fi
date date
echo "restarting VDR" echo "restarting VDR"
$KILLPROC $VDRPRG $KILL $VDRPRG
sleep 10 sleep 10
(cd $DVBDIR; make rmmod; make insmod) (cd $DVBDIR; make rmmod; make insmod)
date date