Found the problem.
Somehow the latest /etc/tomcat4/tomcat4.conf
files have a variable missing(SHUTDOWN_WAIT) that used to be there.
Also note that I now export my java memory variables(export JAVA_OPTS=" -Xms64m -Xmx128m ")
as the current code no longer works in tomcat 4. (I remember that it used to work in Tomcat 3.3).
I just tried
JAVACMD="$JAVA_HOME/bin/java -Xms64m -Xmx128m " {which is in the latest script}
and that didn't seem to work either. (Using ps axl --cols 1500 | grep tomcat4)
Regards
Peter
My working script follows.
# tomcat /etc/rc.d script example configuration file # Use with version 1.07 of the scripts or later
# Use Jpackage utils if present if [ -x /usr/bin/java-functions ]; then . /usr/bin/java-functions set_jvm fi
# Source Java system configuration if exist if [ -r /etc/java/java.conf ]; then . /etc/java/java.conf fi
# you could also override JAVA_HOME here # Where your java installation lives # JAVA_HOME="/usr/java/jdk" JAVA_HOME="/opt/IBMJava2-13"
# You can pass some parameters to java # here if you wish to #JAVA_OPTS="-Xminf0.1 -Xmaxf0.3"
# Where your tomcat installation lives # That change from previous RPM where TOMCAT_HOME # used to be /var/tomcat. # Now /var/tomcat will be the base for webapps only CATALINA_HOME="/var/tomcat4" JASPER_HOME="/var/tomcat4" CATALINA_TMPDIR="/var/tomcat4/temp"
# What user should run tomcat TOMCAT_USER="tomcat4"
# You can change your tomcat locale here #LANG=en_US
# Time to wait in seconds, before killing process SHUTDOWN_WAIT=30
# Set the TOMCAT_PID location CATALINA_PID=/var/run/tomcat4.pid
# If you wish to further customize your tomcat environment, # put your own definitions here # (i.e. LD_LIBRARY_PATH for some jdbc drivers) # Just do not forget to export them :) export JAVA_OPTS=" -Xms64m -Xmx128m "
On Wednesday, August 13, 2003, at 12:08 AM, John Turner wrote:
Just debug the script. The line numbers are given. Patches welcome.
John
peter mcgregor wrote:
Hi,
Whenever I restart tomcat4 in RedHat 8 I get
# service tomcat4 restart
/etc/init.d/tomcat4: line 105: let: kwait=: syntax error: operand expected (error token is "=")
/etc/init.d/tomcat4: line 107: [: 0: unary operator expected
waiting for processes to exit
/etc/init.d/tomcat4: line 107: [: 1: unary operator expected
waiting for processes to exit
The script used to work before some updates to redhat were applied.
This problem occurs on a number of our machines.
Is there a fix to this problem. Also will the 4.1.27 rpm's be out soon?
thank you
peter McGregor
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
