1 |
On Wed, 2005-08-24 at 17:27 +0900, Georgi Georgiev wrote: |
2 |
> > uberpc init.d # ./test start |
3 |
> > * Starting service test |
4 |
> > LANG=en_GB.utf8 |
5 |
> > LANGUAGE=en_GB.utf8 |
6 |
> > set | grep LANG |
7 |
> > * Service test started OK |
8 |
> |
9 |
> Try unsetting the variable in your own shell first. |
10 |
> |
11 |
> lion init.d # /etc/init.d/test restart |
12 |
> LANG=en_US.utf8 |
13 |
> set | grep LANG |
14 |
> lion init.d # LANG=C /etc/init.d/test restart |
15 |
> LANG=C |
16 |
> set | grep LANG |
17 |
> lion init.d # env -u LANG /etc/init.d/test restart |
18 |
> set | grep LANG |
19 |
> \ |
20 |
|
21 |
Um, that's kinda like behaviour by design unless anyone can tell me |
22 |
otherwise. |
23 |
|
24 |
/etc/env.d/* just set shell variables, so if you change one then you |
25 |
need to |
26 |
|
27 |
env-update |
28 |
source /etc/profile |
29 |
/etc/init.d/thisdaemon restart |
30 |
|
31 |
To refresh the daemon that needs the vars |
32 |
|
33 |
-- |
34 |
Roy Marples <uberlord@g.o> |
35 |
Gentoo Linux Developer |