public inbox for gentoo-dev@lists.gentoo.org
 help / color / mirror / Atom feed
From: Roy Marples <uberlord@gentoo.org>
To: gentoo-dev@lists.gentoo.org
Subject: Re: [gentoo-dev]  init.d-scripts don't see stuff from /etc/profile.env
Date: Wed, 24 Aug 2005 08:26:26 +0100	[thread overview]
Message-ID: <1124868386.11174.3.camel@uberpc.ubernet> (raw)
In-Reply-To: <defcf0$i8a$1@sea.gmane.org>

On Tue, 2005-08-23 at 16:33 +0200, Sven Köhler wrote:
> Hi,
> 
> 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?

> 
> 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=en_GB.utf8
LANGUAGE=en_GB.utf8
    set | grep LANG
 * Service test started OK


> 
> So what's the intension to ignore /etc/profile.env for init.d-script and
> 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


-- 
gentoo-dev@gentoo.org mailing list



  reply	other threads:[~2005-08-24  7:28 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-08-23 14:33 [gentoo-dev] init.d-scripts don't see stuff from /etc/profile.env Sven Köhler
2005-08-24  7:26 ` Roy Marples [this message]
2005-08-24  8:27   ` Georgi Georgiev
2005-08-24 10:04     ` Roy Marples
2005-08-24 11:35       ` Georgi Georgiev
2005-08-24 13:20         ` [gentoo-dev] " Sven Köhler
2005-08-25 10:01       ` [gentoo-dev] " Paul de Vrieze
2005-08-26 11:58         ` [gentoo-dev] " Sven Köhler
2005-08-30 21:32         ` [gentoo-dev] " Roy Marples
2005-08-30 22:06           ` Roy Marples
2005-08-30 22:36             ` Francesco R
2005-08-30 22:40           ` [gentoo-dev] " Sven Köhler
2005-08-30 23:09           ` [gentoo-dev] " Mike Frysinger
2005-08-31  1:41             ` [gentoo-dev] " Sven Köhler
2005-08-31  1:57               ` Mike Frysinger
2005-08-31  1:56                 ` Sven Köhler
2005-08-31  2:15                 ` Martin Schlemmer
2005-08-31  2:21                   ` Mike Frysinger
2005-08-31  7:25                     ` Martin Schlemmer
2005-08-31 10:11                       ` Paul de Vrieze
2005-09-02 10:41                       ` Martin Schlemmer

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1124868386.11174.3.camel@uberpc.ubernet \
    --to=uberlord@gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox