From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 24616 invoked from network); 3 May 2004 08:50:40 +0000 Received: from smtp.gentoo.org (128.193.0.39) by eagle.gentoo.oregonstate.edu with DES-CBC3-SHA encrypted SMTP; 3 May 2004 08:50:40 +0000 Received: from lists.gentoo.org ([128.193.0.34] helo=eagle.gentoo.org) by smtp.gentoo.org with esmtp (Exim 4.24) id 1BKZ9s-0000ht-HQ for arch-gentoo-dev@lists.gentoo.org; Mon, 03 May 2004 08:50:40 +0000 Received: (qmail 21964 invoked by uid 50004); 3 May 2004 08:50:40 +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 21475 invoked from network); 3 May 2004 08:50:40 +0000 X-Authentication-Warning: garcia.efn.org: allenp owned process doing -bs Date: Mon, 3 May 2004 01:50:37 -0700 (PDT) From: Allen D Parker To: Paul de Vrieze cc: gentoo-dev@lists.gentoo.org In-Reply-To: <200405031030.16829.pauldv@gentoo.org> Message-ID: References: <20040502173223.GA7160@linux1.home> <1083561023.5397.42.camel@newkid.milsson.nu> <1083564905.8372.3.camel@TesterTop.tester.ca> <200405031030.16829.pauldv@gentoo.org> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=iso-8859-1 Content-Transfer-Encoding: QUOTED-PRINTABLE Subject: Re: [gentoo-dev] strange gentoo shutdown sequence X-Archives-Salt: 1249a819-07fe-4a0f-9b80-a76e7d1a2ee8 X-Archives-Hash: 11e09a5da27e5201f4a5a94dbc5f58f0 We can actually probably do this in bash fairly simply (although unless each service is started in sequence or in a seperate shellspace, it might be a problem) parallel start + bash variables =3D nastiness. for each initscript SVCNAME=3D"apache2" then in the actual runscript, something like this would do just fine (imho) for 99% of what would need to be supported: SVCHOME=3D`whereis ${SVCNAME} | cut -d " " -f 2` if ${SVCNAME} !=3D `ps aux | grep ${SVCHOME}`; then /etc/init.d/${SVCNAME} zap && /etc/init.d/${SVCNAME} start else SVC_STATUS=3D"alive" fi Allen Parker (temporarily off my windows box :( i borked my raid firmware last night) On Mon, 3 May 2004, Paul de Vrieze wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > On Monday 03 May 2004 08:15, Olivier Cr=EAte wrote: > > On Mon, 2004-05-03 at 07:10, John Nilsson wrote: > > > While on the topic: > > > =09Is it resonable to patch gdm so that /etc/init.d/xdm is zapped > > > after gdm is killed by selecting reboot/shutdown from the login > > > screen? It just annoys me that the script errors while shutting > > > down. > > > > This is imho a misfeature of the current initscripts system. The > > started-ness of an application is only checked against a file and not > > against the current real status. We should probably add a possible > > "status()" function to them (that would default to true) that would > > check if the service is still running in a custom way.. And zap it if > > it isnt... The problem there is with dependencies, should they be > > stopped if the service died? But the current system is clearly > > broken.. > > I agree, I think we should enhance the init scripts with another function > that can check the status of a daemon (in some way) and as such also > does not complain when a died daemon needs to be started. > > Paul > > - -- > Paul de Vrieze > Gentoo Developer > Mail: pauldv@gentoo.org > Homepage: http://www.devrieze.net > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v1.2.4 (GNU/Linux) > > iD8DBQFAlgMYbKx5DBjWFdsRAmOTAKDnA9E0PAVsCtMFAFJIkeKbLuJX/ACcDoCK > k3gzkzUnrA0n2unCEEpERH0=3D > =3D+tIc > -----END PGP SIGNATURE----- > > -- > gentoo-dev@gentoo.org mailing list > > > -- gentoo-dev@gentoo.org mailing list