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 <[EMAIL PROTECTED]>
Organization: Kleintierpraxis Berstadt
To: Bruce Dubbs <[EMAIL PROTECTED]>
References: <[EMAIL PROTECTED]>

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.

Tschau...Thomas

-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-dev
FAQ: http://www.linuxfromscratch.org/faq/
Unsubscribe: See the above information page

Reply via email to