[Fwd: Re: LFS 6.2-pre2 Released]

Bruce Dubbs bruce.dubbs at gmail.com
Mon Jul 24 14:15:36 PDT 2006

I'm not sure if this is best addressed in LFS or BLFS.
  -- Bruce

-------- Original Message --------
Subject: Re: LFS 6.2-pre2 Released
Date: Mon, 24 Jul 2006 22:42:24 +0200
From: Thomas Seeling <thomas.seeling at gmx.net>
Organization: Kleintierpraxis Berstadt
To: Bruce Dubbs <bruce.dubbs at gmail.com>
References: <44C2CE55.5050207 at gmail.com>

Bruce Dubbs schrieb:
> pre-release of LFS 6.2. This release provides several updated to the

I am a happy user of LFS 6.1.1 and I noticed a small glitch with
some servers that spawn children to do the "real work" like samba
or squid.

If the shutdown procedure kills the processes in the wrong sequence
(e.g. the nmbd child first) then the parent spawns a new child and
the killproc function thinks that the shutdown failed.

I guess this is only an aesthetical problem, but I solved it by
sort'ing the ps output before giving it to the kill function.

I changed the pidofproc function in /etc/rc.d/init.d/functions
so that it does " | tr ' ' '\n' | sort -n" to get a sorted list
of PIDs with the assumption that the lowest PID is the parent
of all the other PIDs.
Same logic applies in the killproc function.
This way I need one call to killproc in nmbd stop function
that really kills all nmbd instances.


More information about the blfs-dev mailing list