tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christian Schlaefcke <cschlaef...@wms-network.de>
Subject Tomcat 4.1.18 - Startup script for linux not working
Date Wed, 15 Jan 2003 11:40:08 GMT
Hi there,

I have a problem with the startup of tomcat since I upgraded Tomcat 4.1.17 
to 4.1.18. I just downloaded the tar.gz file and extracted it into 
/var/tomcat4.
Since that the startup script ("/etc/init.d/tomcat4" with "start") says 
"[OK]", but the server won´t come up. After some research I found that a 
single line in this script is not working any more.

[...]
# See how we were called.
start() {
     echo -n "Starting $TOMCAT_PROG: "

     if [ -x /etc/rc.d/init.d/functions ]; then
#######################################################
# This line is called, but it won´t start the server
#######################################################
         daemon --user $TOMCAT_USER $TOMCAT_SCRIPT start
     else
         su - $TOMCAT_USER -c "$TOMCAT_SCRIPT start"
     fi

     RETVAL=$?
     echo
     [ $RETVAL = 0 ] && touch /var/lock/subsys/tomcat4
     return $RETVAL
}
[...]

When I replace the line: "daemon --user $TOMCAT_USER $TOMCAT_SCRIPT start" 
by "su - $TOMCAT_USER -c "$TOMCAT_SCRIPT start"" the server comes up. Why 
is the "normal" way not working?

Thank you for any hints!

Regards,

Chris 


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


Mime
View raw message