tomcat-users mailing list archives

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

>su - user -c startup.sh start IS the "normal" way...at least, I've never
>seen it any other way.  What is "daemon"?  Is that something your Linux
>distro has?

Hmmm, just got a bit further. The functions script in "/etc/rc.d/init.d/" 
contains a function called daemon. I Don´t know what it´s doing exactly 
(guess something like starting tomcat as daemon??). This is a bit to 
complicated I think I leave it like: "su - $TOMCAT_USER -c "$TOMCAT_SCRIPT 
start"".

Thank you!

Chris

> > -----Original Message-----
> > From: Christian Schlaefcke [mailto:cschlaefcke@wms-network.de]
> > Sent: Wednesday, January 15, 2003 6:40 AM
> > To: tomcat-user@jakarta.apache.org
> > Subject: 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:
> > <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
> > For additional commands, e-mail:
> > <mailto:tomcat-user-help@jakarta.apache.org>
> >
>
>--
>To unsubscribe, e-mail:   <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
>For additional commands, e-mail: <mailto:tomcat-user-help@jakarta.apache.org>


--
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