I'd like to setup Tomcat to autostart on bootup:

I'm running OpenBSD 3.2. My root account runs tcsh, but I believe default
scripts go to sh. I have the following lines in /etc/rc.local

if [ -x /usr/local/jdk1.3.1-linux/bin/i386/green_threads/java ]; then
        echo -n ' tomcat'; /usr/local/jakarta-tomcat-4.0.6/bin/startup.sh
fi

However, I need to set environment variables JAVA_HOME and CLASSPATH. (The
server complains JAVA_HOME not set.)

I attempted to do it in /usr/local/jakarta-tomcat-4.0.6/bin/startup.sh:

JAVA_HOME=/usr/local/jdk-1.3.1-linux/
export JAVA_HOME
CLASSPATH=/var/tomcat/web-app/ROOT/WEB-INF/classes/
export CLASSPATH

But this doesn't work. I wanted to see if I could setenv in my shell by
modifying .tcshrc:

setenv JAVA_HOME /usr/local/jdk1.3.1-linux
setenv CLASSPATH /var/tomcat/webapps/ROOT/WEB-INF/classes

But this also didn't work. Also, if I don't have to startup as root, that
would be better.

Any thoughts?

Thanks,

***************************     
* Adam Getchell                                 [EMAIL PROTECTED]
* System Architect/Programmer                   (530) 752-1584
* Human Resources Information Systems   http://www.hr.ucdavis.edu/
***************************     
"Invincibility is in oneself, vulnerability in the opponent." -- Sun Tzu


--
To unsubscribe, e-mail:   <mailto:tomcat-user-unsubscribe@;jakarta.apache.org>
For additional commands, e-mail: <mailto:tomcat-user-help@;jakarta.apache.org>

Reply via email to