From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 11307 invoked from network); 4 May 2004 16:30:54 +0000 Received: from smtp.gentoo.org (128.193.0.39) by eagle.gentoo.oregonstate.edu with DES-CBC3-SHA encrypted SMTP; 4 May 2004 16:30:54 +0000 Received: from lists.gentoo.org ([128.193.0.34] helo=eagle.gentoo.org) by smtp.gentoo.org with esmtp (Exim 4.24) id 1BL2oo-0007WL-Av for arch-gentoo-dev@lists.gentoo.org; Tue, 04 May 2004 16:30:54 +0000 Received: (qmail 25309 invoked by uid 50004); 4 May 2004 16:30:53 +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 99 invoked from network); 4 May 2004 16:30:53 +0000 Date: Tue, 4 May 2004 12:30:47 -0400 From: Jon Portnoy To: Sven =?iso-8859-1?Q?K=F6hler?= Cc: gentoo-dev@lists.gentoo.org Message-ID: <20040504163047.GA19268@cerberus.oppresses.us> References: <20040502173223.GA7160@linux1.home> <20040503162436.GA1938@sigint.cs.purdue.edu> <20040504153316.GB7040@sigint.cs.purdue.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.6i Content-Transfer-Encoding: quoted-printable X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - ns.will-kill.us X-AntiAbuse: Original Domain - lists.gentoo.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - cerberus.oppresses.us Subject: Re: [gentoo-dev] Re: strange gentoo shutdown sequence X-Archives-Salt: c0c5c83e-95ce-4078-afa0-38f93ea81fc0 X-Archives-Hash: 00ae14b6984bdffb453f50bc561e2d11 On Tue, May 04, 2004 at 06:00:44PM +0200, Sven K=F6hler wrote: > >>well why is the shell inside my gnome-terminal killed (and restarted = by=20 > >>gnome-terminal over and over again) if i execute halt? > > > >Because halt also signals all processes, independently of init. Look= at > >the top of /etc/init.d/halt.sh: > > > >| ebegin "Sending all processes the TERM signal" > >| killall5 -15 &> /dev/null > >| eend $? > >| sleep 5 > >| ebegin "Sending all processes the KILL signal" > >| killall5 -9 &> /dev/null > >| eend $? >=20 > OK, but that doesn't make sense to me too. >=20 > I want to write a init-script to start/stop UML-machines. I wan't the=20 > UMLs to be gracefully shutdown. I cannot take the risk of data-loss due= =20 > to an UML getting killed. >=20 > BTW: UML=3DUserModeLinux >=20 >=20 Anything in the runlevel will be gracefully shut down via the init=20 script's stop function (if it didn't, you'd see a whole lot of errors in=20 the shutdown sequence) halt is called after everything else and kills remaining processes. --=20 Jon Portnoy avenj/irc.freenode.net -- gentoo-dev@gentoo.org mailing list