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 1E7pgn-0006wW-2y for garchives@archives.gentoo.org; Wed, 24 Aug 2005 07:28:49 +0000 Received: from robin.gentoo.org (localhost [127.0.0.1]) by robin.gentoo.org (8.13.4/8.13.4) with SMTP id j7O7RADG027165; Wed, 24 Aug 2005 07:27:10 GMT Received: from anchor-post-33.mail.demon.net (anchor-post-33.mail.demon.net [194.217.242.91]) by robin.gentoo.org (8.13.4/8.13.4) with ESMTP id j7O7PSbF027511 for <gentoo-dev@lists.gentoo.org>; Wed, 24 Aug 2005 07:25:28 GMT Received: from rsm.demon.co.uk ([80.177.111.50] helo=mail.ubernet) by anchor-post-33.mail.demon.net with esmtp (Exim 4.42) id 1E7peU-000Dkg-Bh for gentoo-dev@lists.gentoo.org; Wed, 24 Aug 2005 07:26:26 +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 4C3312B4009 for <gentoo-dev@lists.gentoo.org>; Wed, 24 Aug 2005 08:26:26 +0100 (BST) Subject: Re: [gentoo-dev] init.d-scripts don't see stuff from /etc/profile.env From: Roy Marples <uberlord@gentoo.org> To: gentoo-dev@lists.gentoo.org In-Reply-To: <defcf0$i8a$1@sea.gmane.org> References: <defcf0$i8a$1@sea.gmane.org> Content-Type: text/plain; charset=utf8 Date: Wed, 24 Aug 2005 08:26:26 +0100 Message-Id: <1124868386.11174.3.camel@uberpc.ubernet> Precedence: bulk List-Post: <mailto:gentoo-dev@lists.gentoo.org> List-Help: <mailto:gentoo-dev+help@gentoo.org> List-Unsubscribe: <mailto:gentoo-dev+unsubscribe@gentoo.org> List-Subscribe: <mailto:gentoo-dev+subscribe@gentoo.org> List-Id: Gentoo Linux mail <gentoo-dev.gentoo.org> X-BeenThere: gentoo-dev@gentoo.org Reply-to: gentoo-dev@lists.gentoo.org Mime-Version: 1.0 X-Mailer: Evolution 2.2.3 X-MIME-Autoconverted: from quoted-printable to 8bit by robin.gentoo.org id j7O7PSbF027511 Content-Transfer-Encoding: quoted-printable X-MIME-Autoconverted: from 8bit to quoted-printable by robin.gentoo.org id j7O7RAEm027165 X-Archives-Salt: 491565b5-425d-441e-b049-375012b22c67 X-Archives-Hash: 65986a3404747bff66f8644bce58e95c On Tue, 2005-08-23 at 16:33 +0200, Sven K=C3=B6hler wrote: > Hi, >=20 > i just wrote an init.d-script and i thought that the LANG variable was > inherited since it set system-wide in /etc/env.d/02locale and therefor > is also found in /etc/profile.env Did you env-update? >=20 > Now i noticed, that LANG isn't set for the process started by my > init.d-script. I set LANG and a few other things in /etc/env.d/02locale Here's a quick init script called test #!/sbin/runscript start() { set | grep LANG } Now, lets see what it does uberpc init.d # ./test start * Starting service test LANG=3Den_GB.utf8 LANGUAGE=3Den_GB.utf8 set | grep LANG * Service test started OK >=20 > So what's the intension to ignore /etc/profile.env for init.d-script an= d > what's the gentoo-way of loading the all or specific variabled from > /etc/profile.env? So we're not ignoring it. Maybe the process itself doesn't use LANG ? Thanks Roy --=20 gentoo-dev@gentoo.org mailing list