You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Christian Schlaefcke <cs...@wms-network.de> on 2003/01/15 12:40:08 UTC
Tomcat 4.1.18 - Startup script for linux not working
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: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>