On Tue, Nov 25, 2008 at 06:07:40PM +0100, Petter Reinholdtsen wrote:
> [Philipp Kern]
> > *argh* pidofproc returns the pid of the init script -> portmap does
> > not start at all -> rpc.statd and other NFS daemons do not start.
> > This affects lenny and severely breaks on-boot mounting of NFS
> > shares.
> 
> Hm, is this the /lib/lsb/init-functions implementation of pidofproc?
> It seem to be completely useless if it behave as described here.
> 
> I tested this in etch and unstable.  It do not work this way in etch:
> 
>   % cat x
>   #!/bin/sh
>   . /lib/lsb/init-functions
>   pid=`pidofproc x`
>   echo $pid
>   % PATH=.:$PATH x
> 
>   %
> 
> While in unstabe, the same script return a pid:
> 
>   % PATH=.:$PATH x
>   18769
>   %
> 
> I would say this is a bug in lsb-base.  Version 3.1-23.2etch1 work,
> while 3.2-20 do not.

Hmhm yes that looks spurious. It's weird nobody noticed this before,
because it should break in many situations…

-- 
Yves-Alexis



--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to