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:[EMAIL PROTECTED]]
> Sent: Wednesday, January 15, 2003 6:40 AM
> To: [EMAIL PROTECTED]
> 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:[EMAIL PROTECTED]>
> For additional commands, e-mail: 
> <mailto:[EMAIL PROTECTED]>
> 

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to