is this reincarnation of #370256 http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=370256 reassigned to lsb-base or pidofproc changed its API?
On Tue, 06 Jun 2006, martin f krafft wrote: > Package: fail2ban > Version: 0.6.1-3 > Severity: grave > Tags: patch > --- /etc/init.d/fail2ban.orig 2006-06-06 16:30:22.760214786 +0200 > +++ /etc/init.d/fail2ban 2006-06-06 16:38:44.260607142 +0200 > @@ -60,8 +60,10 @@ > || return 1 > # we need to remove pid file or fail2ban would refuse to start > # probably check could be ommited but... better be safe > - pidofproc $NAME $PIDFILE > /dev/null > - [ $? -eq 2 ] && rm -rf $PIDFILE > + if [ -f $PIDFILE ]; then > + pidofproc $NAME < $PIDFILE > /dev/null > + [ $? -eq 2 ] && rm -rf $PIDFILE > + fi > start-stop-daemon --start --quiet --pidfile $PIDFILE --exec $DAEMON -- \ > $DAEMON_ARGS \ > || return 2 -- .-. =------------------------------ /v\ ----------------------------= Keep in touch // \\ (yoh@|www.)onerussian.com Yaroslav Halchenko /( )\ ICQ#: 60653192 Linux User ^^-^^ [175555]
pgpdIpNTs3bDL.pgp
Description: PGP signature