tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Roberto B." <robe...@ipermedianet.com>
Subject Tomcat before Apache
Date Fri, 17 Aug 2001 15:36:37 GMT
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??

Roberto




Mime
View raw message