From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 23627 invoked from network); 3 May 2004 16:24:38 +0000 Received: from smtp.gentoo.org (128.193.0.39) by eagle.gentoo.oregonstate.edu with DES-CBC3-SHA encrypted SMTP; 3 May 2004 16:24:38 +0000 Received: from lists.gentoo.org ([128.193.0.34] helo=eagle.gentoo.org) by smtp.gentoo.org with esmtp (Exim 4.24) id 1BKgFB-0000G1-EP for arch-gentoo-dev@lists.gentoo.org; Mon, 03 May 2004 16:24:37 +0000 Received: (qmail 12060 invoked by uid 50004); 3 May 2004 16:24:37 +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 21133 invoked from network); 3 May 2004 16:24:37 +0000 Date: Mon, 3 May 2004 11:24:36 -0500 From: splite-gentoo@sigint.cs.purdue.edu To: gentoo development Message-ID: <20040503162436.GA1938@sigint.cs.purdue.edu> References: <20040502173223.GA7160@linux1.home> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20040502173223.GA7160@linux1.home> X-Disclaimer: Any similarity to an opinion of Purdue is purely coincidental Subject: Re: [gentoo-dev] strange gentoo shutdown sequence X-Archives-Salt: 287baecd-6da6-4be9-9408-17b01bddaee1 X-Archives-Hash: d24edcdcda3767699bbe52c140980c85 On Sun, May 02, 2004 at 12:32:23PM -0500, William Hubbs wrote: > Hi all, > > On Sun, May 02, 2004 at 01:40:08PM +0200, Sven K?hler wrote: > > hi, > > > > gentoo usually does the following if i execute halt or reboot: > > > > sending all processes the TERM signal > > sending all processes the KILL signal > > stopping xdm ... > > stopping alsasound ... > > etc.... > > > > in may eyes, this has to be the other way round: > > first shutdown all deamons properly with the init.d-script, and than > > send the remaining processes the TERM and KILL signals. > > > > > > why does gentoo handle things the way it does? redhat etc. do it the > > other way i described. using the init.d-script sounds more resonable to me. > > I just confirmed this. When you do a shutdown or a reboot or halt, the processes are killed by the kill and term signals before the services are actually stopped with the /etc/init.d/* scripts. > > Is there a reason for this or should it be the other way around? init(8) itself sends the TERM and KILL signals when changing runlevels, and there's no way around that, save patching init. It's not a real problem because init only signals processes still in init's process group, and there usually aren't any. (Run "ps -eo pid,pgrp,cmd" to see if any are, if you're curious.) "man init" for more info. -- gentoo-dev@gentoo.org mailing list