environment variable at boot
Hi,
I want to run Tomcat at startup.
For that, I need the variable JAVA_HOME to be defined.
I edited /etc/rc.d/rc.local
and added this:
export JAVA_HOME="/opt/jdk1.5.0_04"
export CATALINA_HOME="/opt/jakarta-tomcat-5.5.9"
/usr/local/sbin/pure-ftpd &
/usr/local/apache2/bin/apachectl start
/opt/jakarta-tomcat-5.5.9/bin/startup.sh
pure-ftpd and apache starts fine, but tomcat doesn't.
It says that JAVA_HOME is not defined.
Is there something wrong with my syntax?
Or maybe rc.local does not accecpt that type of statement?
Please help,
Thanks
|