Well, your suggestion got me going in the right direction, I needed to reference startup.sh plus add the env variables to the startup script explicitly.
Thanks for your help, CC Here is the final working startup script for Solaris 8 (prolly work on Linux as well) #!/sbin/sh # JAVA_HOME=/usr/j2sdk1.3.1_04 ;export JAVA_HOME PATH=/bin:/usr/bin:/sbin:/usr/local/bin:$JAVA_HOME/bin ;export PATH CATALINA_BASE=/usr/local/jakarta-tomcat-4.1.12 ;export CATALINA_BASE CATALINA_HOME=/usr/local/jakarta-tomcat-4.1.12 ;export CATALINA_HOME case "$1" in start) echo "Starting Tomcat Server 4.1.12" echo "..... using JAVA_HOME=$JAVA_HOME" echo "..... using PATH=$PATH" echo "..... using CATALINA_BASE=$CATALINA_BASE" echo "..... using CATALINA_HOME=$CATALINA_HOME" echo "..... using CATALINA_TMPDIR=$CATALINA_HOME/temp" /usr/local/jakarta-tomcat-4.1.12/bin/startup.sh echo "End of Tomcat initialization." ;; stop) echo "Stopping tomcat server..." /usr/local/jakarta-tomcat-4.1.12/bin/shutdown.sh ;; *) echo "Usage: $0 {start|stop}" exit 1 ;; esac exit 0 Turner, John wrote: > What if you call startup.sh and shutdown.sh instead of catalina.sh directly? > > John > > > >>-----Original Message----- >>From: Chuck Carson [mailto:[EMAIL PROTECTED]] >>Sent: Wednesday, October 02, 2002 11:20 AM >>To: Tomcat Users List >>Subject: Help with Startup Script >> >> >> >>I am unable to get tomcat to start automatically under >>Solaris 8. I try >>starting it after several other socket based applications (such as >>oracle and postgres) >> >>I get nothing in the logs, the service merely refuses to start. >> >>Here is the startup script: >>#!/sbin/sh >>case "$1" in >>start) >> echo "Starting tomcat server..." >> /sbin/su - root -c . /root/.bashrc && >>/usr/local/tomcat4/bin/catalina.sh start >> ;; >>stop) >> echo "Stopping tomcat server..." >> /usr/local/tomcat4/bin/catalina.sh stop >> ;; >>*) >> echo "Usage: $0 {start|stop}" >> exit 1 >> ;; >>esac >>exit 0 >> >>I added the 'su - root -c . /root/.bashrc' bit as a troubleshooting >>step, the explicit sourcing of root's .bashrc is not needed on other >>services that I start at boot time. >> >>I have this script here: /etc/rc3.d/S70tomcat4 >> >>When the system is booting, I see the message "Starting tomcat >>server..." so I know the script is getting executed. >> >>The default runlevel is set to 3. >> >> >>Anyone have any ideas? >> >>Thanks, >>CC >> >>-- >>Chuck Carson >>Sr. Systems Administrator >>Syrrx, Inc. >>10410 Science Center Drive >>San Diego, CA 92121 >>E: [EMAIL PROTECTED] >>W: +1 858.731.3540 >>M: +1 858.442.0827 >> >> >>-- >>To unsubscribe, e-mail: > > <mailto:[EMAIL PROTECTED]> > For additional commands, e-mail: > <mailto:[EMAIL PROTECTED]> > > -- > To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> > For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> > -- Chuck Carson Sr. Systems Administrator Syrrx, Inc. 10410 Science Center Drive San Diego, CA 92121 E: [EMAIL PROTECTED] W: +1 858.731.3540 M: +1 858.442.0827 -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>