[Pkg-sysvinit-devel] Bug#482817: Bug#482817: pidofproc and %PPID

Petter Reinholdtsen pere at hungry.com
Sat Nov 29 03:10:20 UTC 2008


reassign 482817 portmap
thanks

[John van der Kamp]
> As far as I can tell now, /etc/init.d/portmap does:
>    pid=$( pidofproc portmap )
> The $() starts a new process, and pidof -o %PPID uses this as parent pid.
> But the /etc/init.d/portmap script is also running, and recognized, making
> the pidof program return a of the init.d script.

Sound to me like the new behaviour of pidofproc is the source of your
problem.

> I've fix it like this, but you're welcome to make your own
> conclusions and fixes :)

Right.  This make me conclude that the problem is with portmap and
lsb-base.  Reassigning to portmap.

Happy hacking,
-- 
Petter Reinholdtsen





More information about the Pkg-sysvinit-devel mailing list