Roberto B. at [EMAIL PROTECTED] wrote:

> I use Linux/Debian as root, Apache 1.3 and Tomcat 4 b6
> 
> I want to start automatically Tomcat before Apache.
> I made this things :
> 
> 1) I created this script named "tomcat":
> 
> #! /bin/sh
> TOMCAT_HOME=/usr/tomcat4b6
> # Test tomcat.sh
> if [ ! -x $TOMCAT_HOME/bin/tomcat.sh ]
> then
>   echo "Tomcat not found"
>   exit
> fi
> case $1 in
> start)
> # Start service
> $TOMCAT_HOME/bin/startup.sh
> echo -ne "Tomcat started \n"
> ;;
> stop)
> $TOMCAT_HOME/bin/shutdown.sh
> ;;
> esac
> 
> 2) I insert this script in dir /etc/init.d
> 3) chmod u+x tomcat
> 4) in /etc/rc2.d (because default runlever is 2 in file inittab) this
> command (because i have @S91apache):
>   ln -s ../init.d/tomcat S90tomcat
> 
> 5) I rebooted the system and this is the result:
> 
> :
> :
> etc/init.d/rc: /etc/rc2.d/S90tomcat: No such file or directory
> apache started
> :
> 
> Why??

Darn... It's not $TOMCAT_HOME/bin/startup-shutdown.sh..

It's $CATALINA_HOME/bin/catalina [start-stop]

Read the docs...

    Pier

Reply via email to