From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 15861 invoked from network); 4 May 2004 15:37:36 +0000 Received: from smtp.gentoo.org (128.193.0.39) by eagle.gentoo.oregonstate.edu with DES-CBC3-SHA encrypted SMTP; 4 May 2004 15:37:36 +0000 Received: from lists.gentoo.org ([128.193.0.34] helo=eagle.gentoo.org) by smtp.gentoo.org with esmtp (Exim 4.24) id 1BL1zE-0003e8-P7 for arch-gentoo-dev@lists.gentoo.org; Tue, 04 May 2004 15:37:36 +0000 Received: (qmail 23855 invoked by uid 50004); 4 May 2004 15:37:25 +0000 Mailing-List: contact gentoo-dev-help@gentoo.org; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-dev@gentoo.org Received: (qmail 32672 invoked from network); 4 May 2004 15:37:24 +0000 Date: Tue, 4 May 2004 10:37:24 -0500 From: splite-gentoo@sigint.cs.purdue.edu To: gentoo-dev@lists.gentoo.org Message-ID: <20040504153724.GC7040@sigint.cs.purdue.edu> References: <20040502173223.GA7160@linux1.home> <20040503162436.GA1938@sigint.cs.purdue.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Disclaimer: Any similarity to an opinion of Purdue is purely coincidental Subject: Re: [gentoo-dev] Re: strange gentoo shutdown sequence X-Archives-Salt: 946decdb-1641-434f-a962-165c2de69fde X-Archives-Hash: dfe9c785c1cdac6c5c4e098fcb1643dc On Tue, May 04, 2004 at 05:16:08PM +0200, Sven K?hler wrote: > >init(8) itself sends the TERM and KILL signals when changing runlevels, and > >there's no way around that, save patching init. > > redhat does it the other way round. redhat first calls all init.d > scripts and then the TERM and KILL signals are send - so did redhat > patch init? I don't know; I don't use RHL or RHEL. However, I suspect they work just as Gentoo does. init(8) first signals the processes in its process group, so you'll see: INIT: Switching to runlevel 0 INIT: Sending processes the TERM signal INIT: Sending processes the KILL signal on the console. Then init runs the RHL shutdown scripts, the final one of which probably sends all processes SIGTERM and SIGKILL, just like Gentoo's /etc/init.d/halt.sh does. -- gentoo-dev@gentoo.org mailing list