[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

No one reads my /etc/profile



Hy all, 
first of all excuse me for my bad english. I write
here because i have this problem and i cannot found a
solution on Google.
I need to use Tomcat on my Debian Sarge. So i
installed the package with apt. Everything goes
perfect, so did the installation of Java with apt. Now
Tomcat starts with the /etc/init.d/tomcat5 script at
the boot time, and that was what i need. Unfortunately
when Tomcat is launched this way it cannot start the
Axis component, instead when i launch it with the
CATALINA_HOME/bin/startup.sh script, Axis goes ok.
I think that probably the one of the two scripts sets
some Global Variables, because if i try to run the
startup.sh script it said that it needs the JAVA_HOME
variable to be configured.
So i want to configure this variables, as other
variables like CATALINA_HOME etc...
If i use the command "export
VAR_NAME=/path-to-the-dir" everything goes fine, but
only for that shell and only for this session. I want
something for all users that will be loaded at boot
time.
I found on Google that /etc/profile is the right
place.
Here is my problem. No one on my system reads
/etc/profile. It is read only when i use no GDM and
Gnome and i switch with CTRL+ALT+Fx to some other
textual console. In that case i can see the variables.


Thanks in advance for your answers,
Roberto.

__________________________________________________
Do You Yahoo!?
Poco spazio e tanto spam? Yahoo! Mail ti protegge dallo spam e ti da tanto spazio gratuito per i tuoi file e i messaggi 
http://mail.yahoo.it 



Reply to: