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 1EAF3T-00069Q-8J for garchives@archives.gentoo.org; Tue, 30 Aug 2005 22:58:11 +0000 Received: from robin.gentoo.org (localhost [127.0.0.1]) by robin.gentoo.org (8.13.4/8.13.4) with SMTP id j7UMsHqC015964; Tue, 30 Aug 2005 22:54:17 GMT Received: from smtp.gentoo.org (smtp.gentoo.org [134.68.220.30]) by robin.gentoo.org (8.13.4/8.13.4) with ESMTP id j7UMmhj8032563 for ; Tue, 30 Aug 2005 22:48:43 GMT Received: from main.gmane.org ([80.91.229.2] helo=ciao.gmane.org) by smtp.gentoo.org with esmtp (Exim 4.43) id 1EAEwP-0002Kd-LG for gentoo-dev@lists.gentoo.org; Tue, 30 Aug 2005 22:50:53 +0000 Received: from list by ciao.gmane.org with local (Exim 4.43) id 1EAEuk-0007nE-Sn for gentoo-dev@gentoo.org; Wed, 31 Aug 2005 00:49:10 +0200 Received: from dsl-082-082-127-049.arcor-ip.net ([82.82.127.49]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 31 Aug 2005 00:49:10 +0200 Received: from skoehler by dsl-082-082-127-049.arcor-ip.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 31 Aug 2005 00:49:10 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: gentoo-dev@lists.gentoo.org From: =?ISO-8859-15?Q?Sven_K=F6hler?= Subject: [gentoo-dev] Re: init.d-scripts don't see stuff from /etc/profile.env Date: Wed, 31 Aug 2005 00:40:45 +0200 Message-ID: References: <20050824082743.GA104763@lion.gg3.net> <1124877882.22517.2.camel@uberlaptop.ubernet> <200508251201.43416.pauldv@gentoo.org> <1125437576.13588.8.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 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enig955CC7F217E631DD22A49706" X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: dsl-082-082-127-049.arcor-ip.net User-Agent: Mozilla Thunderbird 1.0.6 (Windows/20050716) X-Accept-Language: de-DE, de, en-us, en In-Reply-To: <1125437576.13588.8.camel@uberpc.ubernet> X-Enigmail-Version: 0.92.0.0 Sender: news X-Archives-Salt: 68635af0-2ca2-458e-a12b-629e5e18e887 X-Archives-Hash: a6591fa3c183abe9e254edabadcb3a46 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig955CC7F217E631DD22A49706 Content-Type: text/plain; charset=ISO-8859-15 Content-Transfer-Encoding: 7bit > I've been looking into this and the only easy solution I can find is to > move /sbin/runscript.sh to say /lib/rcscripts/sh, change it to > source /etc/profile and then create a new /sbin/runscript.sh like so > > #!/bin/sh > > /bin/env -i \ > CONSOLETYPE="${CONSOLETYPE}" \ > 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! most init.d-scripts have "#!/sbin/runscript" as the first line. I don't know what it does, but could that binary perhaps clear the environment? --------------enig955CC7F217E631DD22A49706 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.1 (Cygwin) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFDFOBt7Ww7FjRBE4ARAlpxAKDKrCB4UYQ4MlzkvxHujznmWomESACdHv2c dzrJ50MTp6ZYu9Y8Bvbfk3Q= =lUF+ -----END PGP SIGNATURE----- --------------enig955CC7F217E631DD22A49706-- -- gentoo-dev@gentoo.org mailing list