tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Turner, John" <JTur...@AAS.com>
Subject RE: Tomcat 4.1.18 - Startup script for linux not working
Date Wed, 15 Jan 2003 12:52:56 GMT

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?  

John


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


Mime
View raw message