Return-Path: Delivered-To: apmail-jakarta-tomcat-user-archive@jakarta.apache.org Received: (qmail 95294 invoked by uid 500); 17 Aug 2001 16:14:03 -0000 Mailing-List: contact tomcat-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk Reply-To: tomcat-user@jakarta.apache.org list-help: list-unsubscribe: list-post: Delivered-To: mailing list tomcat-user@jakarta.apache.org Received: (qmail 95276 invoked from network); 17 Aug 2001 16:14:03 -0000 Received: from router.hotgen.com (HELO carrot.hotgen.com) (194.202.192.237) by h31.sny.collab.net with SMTP; 17 Aug 2001 16:14:03 -0000 Received: from hotgen.com (localhost.localdomain [127.0.0.1]) by carrot.hotgen.com (8.11.2/8.11.2) with ESMTP id f7HGCIN30711 for ; Fri, 17 Aug 2001 17:12:18 +0100 Sender: david@carrot.hotgen.com Message-ID: <3B7D4261.BA82A0EC@hotgen.com> Date: Fri, 17 Aug 2001 17:12:17 +0100 From: David Cassidy X-Mailer: Mozilla 4.76 [en] (X11; U; Linux 2.4.2-2 i686) X-Accept-Language: en MIME-Version: 1.0 To: tomcat-user@jakarta.apache.org Subject: Re: Tomcat before Apache References: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Spam-Rating: h31.sny.collab.net 1.6.2 0/1000/N dos2unix ... Or use vi ... Martin van den Bemt wrote: > > If you created the bash script not in vi, but eg adjusted stuff in write > and > saved it, you need to fix the lineendings.. (there is a util for that > which > was added again on rh7.1, but I forgot the name).. You can test if this > is > the problem by moving the script to eg tomcat_old do a vi tomcat and do > something that show up at the screen.. If that works, you know for sure > that > your bash file is messed up.. Also a hint : try running it after startup > and > see if it works.. > > Mvgr, > Martin > > > -----Original Message----- > > From: Roberto B. [mailto:roberto@ipermedianet.com] > > Sent: Friday, August 17, 2001 5:37 PM > > To: tomcat-user@jakarta.apache.org > > Subject: Tomcat before Apache > > > > > > 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 > > > > > > > >