From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from lists.gentoo.org ([140.105.134.102] helo=robin.gentoo.org) by nuthatch.gentoo.org with esmtp (Exim 4.43) id 1EAEK6-00011T-Kk for garchives@archives.gentoo.org; Tue, 30 Aug 2005 22:11:19 +0000 Received: from robin.gentoo.org (localhost [127.0.0.1]) by robin.gentoo.org (8.13.4/8.13.4) with SMTP id j7UM7qf8018344; Tue, 30 Aug 2005 22:07:52 GMT Received: from anchor-post-35.mail.demon.net (anchor-post-35.mail.demon.net [194.217.242.85]) by robin.gentoo.org (8.13.4/8.13.4) with ESMTP id j7UM4PYN031569 for ; Tue, 30 Aug 2005 22:04:25 GMT Received: from rsm.demon.co.uk ([80.177.111.50] helo=mail.ubernet) by anchor-post-35.mail.demon.net with esmtp (Exim 4.42) id 1EAEAX-000Eid-GX for gentoo-dev@lists.gentoo.org; Tue, 30 Aug 2005 22:01:25 +0000 Received: from uberpc.ubernet (uberpc.ubernet [192.168.2.10]) (using TLSv1 with cipher RC4-MD5 (128/128 bits)) (No client certificate requested) by mail.ubernet (Postfix) with ESMTP id C5C8D2B4080 for ; Tue, 30 Aug 2005 23:06:34 +0100 (BST) Subject: Re: [gentoo-dev] init.d-scripts don't see stuff from /etc/profile.env From: Roy Marples To: gentoo-dev@lists.gentoo.org In-Reply-To: <1125437576.13588.8.camel@uberpc.ubernet> References: <20050824082743.GA104763@lion.gg3.net> <1124877882.22517.2.camel@uberlaptop.ubernet> <200508251201.43416.pauldv@gentoo.org> <1125437576.13588.8.camel@uberpc.ubernet> Content-Type: text/plain Date: Tue, 30 Aug 2005 23:06:35 +0100 Message-Id: <1125439595.10634.1.camel@uberpc.ubernet> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-dev@gentoo.org Reply-to: gentoo-dev@lists.gentoo.org Mime-Version: 1.0 X-Mailer: Evolution 2.2.3 Content-Transfer-Encoding: 7bit X-Archives-Salt: 8f8471d8-f8c9-4518-b802-8e9507738442 X-Archives-Hash: f4d11573180d02886fde1f141416ee63 I just love replying to myself! On Tue, 2005-08-30 at 22:32 +0100, Roy Marples wrote: > #!/bin/sh > > /bin/env -i \ > CONSOLETYPE="${CONSOLETYPE}" \ > IN_BACKGROUND="${IN_BACKGROUND}" \ > IN_HOTPLUG="${IN_HOTPLUG}" \ > /lib/rcscripts/sh/runscript.sh $* A quick reboot shows we need much more. Here's what works on my system /bin/env -i \ BOOT="${BOOT}" \ CONSOLETYPE="${CONSOLETYPE}" \ CRITICAL_SERVICES="${CRITICAL_SERVICES}" \ START_CRITICAL="${START_CRITICAL}" \ STOP_CRTIICAL="${STOP_CRITICAL}" \ OLDSOFTLEVEL="${OLDSOFTLEVEL}" \ SOFTLEVEL="${SOFTLEVEL}" \ IN_BACKGROUND="${IN_BACKGROUND}" \ IN_HOTPLUG="${IN_HOTPLUG}" \ /lib/rcscripts/sh/runscript.sh $* > > Right away we can see that we actually do need some to keep some env > vars and the list would be constantly updated. There's also nothing to > stop the user from setting them and then running a script which kind of > defeats the purpose here anyway. > > Personally I'm against this.I'd like to know what Azarah and Vapier > think of this though. Others too! I think I just added a few more reasons why I don't like this .... Roy -- gentoo-dev@gentoo.org mailing list