Environment vars - where to set?
Darren Wheatley
darren at tenjin.co.uk
Sat Oct 9 14:43:48 UTC 2004
Hi,
> > 1. Personal environment variables, e.g. JAVA_HOME: I am setting them in
> > ~/.gnomerc
> >
> > Is this correct? Can I also tailor PATH there, set aliases etc?
>
> ~/.bashrc is probably better, especially if you uncomment the bit in
> ~/.bash_profile that sources ~/.bashrc.
Do these get called in Ubuntu though? I thought from other posts that these
files weren't called when you logged in / started a shell.
>
> > 2. Server environment variables, e.g. could also be TOMCAT_HOME:
> >
> > Where do I set these so that server processes can pick them up?
>
> I generally do that in the init script for the relevant service.
Can you expand on that please?
Thanks
D.
More information about the ubuntu-users
mailing list