Return-Path: Delivered-To: apmail-jakarta-tomcat-user-archive@apache.org Received: (qmail 82235 invoked from network); 15 Aug 2003 15:18:56 -0000 Received: from exchange.sun.com (192.18.33.10) by daedalus.apache.org with SMTP; 15 Aug 2003 15:18:56 -0000 Received: (qmail 27168 invoked by uid 97); 15 Aug 2003 15:21:40 -0000 Delivered-To: qmlist-jakarta-archive-tomcat-user@nagoya.betaversion.org Received: (qmail 27161 invoked from network); 15 Aug 2003 15:21:39 -0000 Received: from daedalus.apache.org (HELO apache.org) (208.185.179.12) by nagoya.betaversion.org with SMTP; 15 Aug 2003 15:21:39 -0000 Received: (qmail 80836 invoked by uid 500); 15 Aug 2003 15:18:33 -0000 Mailing-List: contact tomcat-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Tomcat Users List" Reply-To: "Tomcat Users List" Delivered-To: mailing list tomcat-user@jakarta.apache.org Received: (qmail 80807 invoked from network); 15 Aug 2003 15:18:32 -0000 Received: from plmler3.mail.eds.com (199.228.142.73) by daedalus.apache.org with SMTP; 15 Aug 2003 15:18:32 -0000 Received: from plmlir3.mail.eds.com (plmlir3-2.mail.eds.com [199.228.142.133]) by plmler3.mail.eds.com (8.11.6p2/8.11.6) with ESMTP id h7FFIZD25916 for ; Fri, 15 Aug 2003 10:18:35 -0500 Received: from plmlir3.mail.eds.com (localhost [127.0.0.1]) by plmlir3.mail.eds.com (8.11.6p2/8.11.6) with ESMTP id h7FFIYp28234 for ; Fri, 15 Aug 2003 11:18:34 -0400 Received: from usplm101.exsc01.exch.eds.com (USPLM101.txpln.us.eds.com [198.132.135.14]) by plmlir3.mail.eds.com (8.11.6p2/8.11.6) with ESMTP id h7FFIY028217 for ; Fri, 15 Aug 2003 11:18:34 -0400 Received: by USPLM101.txpln.us.eds.com with Internet Mail Service (5.5.2656.59) id ; Fri, 15 Aug 2003 10:18:23 -0500 Message-ID: <2928D6FE55D5584390909578CAC8397D5F7C38@usplm216.txpln.us.eds.com> From: "Lott, Carey" To: "'Tomcat Users List'" Subject: RE: Starting tomcat from init scripts (HP/UX) Date: Fri, 15 Aug 2003 10:18:24 -0500 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2656.59) Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Ok, I finally got the script to execute correctly and I got the = familiar output: Using CATALINA_BASE: /bto/appl/apache/jakarta-tomcat-4.0.4 Using CATALINA_HOME: /bto/appl/apache/jakarta-tomcat-4.0.4 Using CATALINA_TMPDIR: /bto/appl/apache/jakarta-tomcat-4.0.4/temp Using JAVA_HOME: /opt/java1.4 But tomcat still isn't starting, and I am not receiving any other = errors. Also the script executes fine when I do it from command line. I have placed the start/stop script in /sbin/init.d/. I have made the script be last to start and first to stop. I couldn't get the script = to recognize the env variables when they were in the rc.config.d = directory, so I placed them directly in the script which seems to have worked, but = the process still isn't starting. =20 Can anybody give me any other ideas as to what could be wrong or what I could try? Any ideas how I can get a better error information? Below is the start/stop script - /sbin/init.d/tomcat. Can you see = anything missing? Thanks in advance for everybody's input and help. #!/sbin/sh # Start/Stop for Tomcat Java Servlet Container # PATH=3D/sbin:/usr/sbin:/usr/bin export PATH ## Source global configuration file ##. /etc/rc.config # Needed variables CATALINA_HOME=3D/bto/appl/apache/jakarta-tomcat-4.0.4 export CATALINA_HOME JAVA_HOME=3D/opt/java1.4 export JAVA_HOME CLASSPATH=3D/bto/appl/apache/jakarta-tomcat-4.0.4/common/lib/servlet.jar= :/opt/ java1.4/jre/lib/rt.jar:/opt/java1.4/lib/tools.jar:/opt/java1.4/lib/dt.ja= r:/o pt/java1.4/lib/htmlconverter.jar:/opt/java1.4/jre/lib/charsets.jar:/opt/= java 1.4/jre/lib/javaplugin.jar:/opt/java1.4/jre/lib/ext/dnsns.jar:/opt/java1= .4/j re/lib/ext/localedata.jar:/opt/java1.4/jre/lib/ext/ldapsec.jar:/opt/java= 1.4/ jre/lib/jce.jar:/opt/java1.4/jre/lib/jsse.jar:.:/bto/appl/apache/jakarta= -tom cat-4.0.4/webapps/esd/WEB-INF/classes:/bto/appl/apache/jakarta-tomcat-4.= 0.4/ webapps/esd/WEB-INF/lib:/bto/appl/apache/htdocs/esd/java:/bto/sys/oracle= /pro duct/8.0.6/jdbc/lib/classes111.zip export CLASSPATH case $1 in start_msg) echo "Starting Tomcat" ;; 'start') /bto/appl/apache/jakarta-tomcat-4.0.4/bin/catalina.sh = start >> /bto/appl/apache/jakarta-tomcat-4.0.4/logs/bootlogstart.txt 2>&1 & ;; stop_msg) echo "Stopping Tomcat" ;; 'stop') /bto/appl/apache/jakarta-tomcat-4.0.4/bin/catalina.sh = stop >> /bto/appl/apache/jakarta-tomcat-4.0.4/logs/bootlogstop.txt 2>&1 & ;; esac exit 0; Carey Lott Web Tools Support Infrastructure Storage & Tools Support EDS BellSouth 404-529-6676 carey.lott@eds.com carey@imcingular.com ***** "The information transmitted is intended only for the person or entity = to which it is addressed and may contain confidential, proprietary, and/or privileged material.=A0 Any review, retransmission, dissemination or = other use of, or taking of any action in reliance upon, this information by = persons or entities other than the intended recipient is prohibited.=A0 If you = received this in error, please contact the sender and delete the material from = all computers." -----Original Message----- From: Morgan Pyne [mailto:Morgan.Pyne@eur.sas.com]=20 Sent: Friday, August 08, 2003 3:54 AM To: Tomcat Users List Subject: RE: Starting tomcat from init scripts (HP/UX)=20 Have a look at /usr/share/doc/start_up.txt or = /usr/share/doc/start_up.ps on a HP-UX 11.00 machine=20 for details of how to write a startup script conforming to HP-UX's = standards (for issuing messages=20 at startup and shutdown via the 'start_msg' and 'stop_msg' parameters, honouring the settings in=20 /etc/rc.config.d etc...).=20 You can use any of the scripts in /sbin/init.d as a basis - modify one = as appropriate and=20 get it to simply call catalina.sh.=20 We also modified our catalina.sh to check which userid was calling the script. If it was root it would sudo to the non-privileged user that = Tomcat ran under ('tomcat'). If it was userid 'tomcat' calling it it would = simply continue. If it was anyone else, it would exit with an error message. = This way we get Tomcat started as a non-privileged user=20 starting automatically on boot. Regards, Morgan > -----Original Message----- > From: Eric J. Pinnell [mailto:eric@iCky.org] > Sent: Friday, August 08, 2003 02:11 > To: Tomcat Users List > Subject: RE: Starting tomcat from init scripts (HP/UX)=20 >=20 >=20 > Tim is right. In HP/UX there is a default start script (I > forget what it's called). You plug in the name of your=20 > service and add any other stuff it might need. You define=20 > you service as being active somewhere else. (I know I'm not=20 > much help but it's been a while). >=20 > That way when it starts you get the [OK] message. >=20 > -e >=20 > On Thu, 7 Aug 2003, Lott, Carey wrote: >=20 > > I tried calling the startup.sh instead of catalina.sh, but > I had the > > same outcome. It executes the first part of the script > which displays > > the variables that are being used, but it doesn't do > anything more. > > We haven't been able to find any errors to give us an idea > of what the > > problem is. I'm sorry I think I forgot to say in the initial email > > that I am running Tomcat 4.0.4 on HP/UX 11.00. I appreciate any=20 > > suggestions you can offer. > > > > > > Carey Lott > > Web Tools Support > > Infrastructure Storage & Tools Support > > EDS BellSouth > > 404-529-6676 > > carey.lott@eds.com > > carey@imcingular.com > > > > > > > > > > ***** > > "The information transmitted is intended only for the > person or entity > > to which it is addressed and may contain confidential, proprietary, > > and/or privileged material.=A0 Any review, retransmission,=20 > dissemination > > or other use of, or taking of any action in reliance upon, this > > information by persons or entities other than the intended=20 > recipient > > is prohibited.=A0 If you received this in error, please contact the > > sender and delete the material from all computers." > > > > > > -----Original Message----- > > From: Eric J. Pinnell [mailto:eric@iCky.org] > > Sent: Thursday, August 07, 2003 2:11 PM > > To: Tomcat Users List > > Subject: Re: Starting tomcat from init scripts (HP/UX) > > > > > > Hi, > > > > It's been a while since I tinkered with HP/UX but it seems > to me that > > you can set all your varibles in the default tomcat start > scripts and > > then call the default startup.sh and shutdown.sh. > > > > -e > > > > On Thu, 7 Aug 2003, Lott, Carey wrote: > > > > > Hi, > > > The above subject is based on the exact same topic I found in the > > > archives from back in January, but no solution was ever=20 > posted. We > > > are having the exact same problem that Pascal was having. We are > > > trying to start tomcat from an init script at boot time. =20 > I have the > > > needed variables in the init script, and the init script calls > > > catalina.sh directly. Below is a copy of my script. I have used = > > > the script to stop and start tomcat manually without a problem. =20 > > > However, when Tomcat tries to start at boot time the run control=20 > > > information states that it can't start as root, and it is=20 > going to > > > try as bin, but it is unsuccessful. Does anybody know why it > > > wouldn't be able to start as root? What can I do to fix this? > > > > > > Init script: > > > ------------------------------------------------------------- > > > #!/bin/sh > > > # Start/Stop for Tomcat Java Servlet Container > > > # > > > > > > CATALINA_HOME=3D"/bto/appl/apache/jakarta-tomcat-4.0.4" > > > export CATALINA_HOME > > > JAVA_HOME=3D"/opt/java1.4" > > > export JAVA_HOME > > >=20 > = CLASSPATH=3D"/bto/appl/apache/jakarta-tomcat-4.0.4/common/lib/servlet. > > > ja > > > r:/opt > > > > >=20 > = /java1.4/jre/lib/rt.jar:/opt/java1.4/lib/tools.jar:/opt/java1.4/lib/dt > > .jar:/ > > > > >=20 > = opt/java1.4/lib/htmlconverter.jar:/opt/java1.4/jre/lib/charsets.jar:/o > > pt/jav > > > > >=20 > = a1.4/jre/lib/javaplugin.jar:/opt/java1.4/jre/lib/ext/dnsns.jar:/opt/ja > > va1.4/ > > > > >=20 > = jre/lib/ext/localedata.jar:/opt/java1.4/jre/lib/ext/ldapsec.jar:/opt/j > > ava1.4 > > > > >=20 > = /jre/lib/jce.jar:/opt/java1.4/jre/lib/jsse.jar:.:/bto/appl/apache/jaka > > rta-to > > > > >=20 > = mcat-4.0.4/webapps/esd/WEB-INF/classes:/bto/appl/apache/jakarta-tomcat > > -4.0.4 > > > > >=20 > = /webapps/esd/WEB-INF/lib:/bto/appl/apache/htdocs/esd/java:/bto/sys/ora > > cle/pr > > > oduct/8.0.6/jdbc/lib/classes111.zip" > > > export CLASSPATH > > > > > > case $1 in > > > 'start') > > > =20 > > > /bto/appl/apache/jakarta-tomcat-4.0.4/bin/catalina.sh > > > start > > > >>=20 > /bto/appl/apache/jakarta-tomcat-4.0.4/logs/bootlogstart.txt 2>&1 > > > >> & > > > ;; > > > 'stop') > > > =20 > > > /bto/appl/apache/jakarta-tomcat-4.0.4/bin/catalina.sh > > > stop > > > >>=20 > /bto/appl/apache/jakarta-tomcat-4.0.4/logs/bootlogstop.txt 2>&1 & > > > ;; > > > esac > > > ---------------------------------------------------------------- > > > > > > Thank you for any help you can offer. > > > Carey > > > > > > > > > Carey Lott > > > Web Tools Support > > > Infrastructure Storage & Tools Support > > > EDS BellSouth=20 > > > carey.lott@eds.com=20 > > > carey@imcingular.com > > > > > > > > >=20 > -------------------------------------------------------------------- > > > - > > > To unsubscribe, e-mail: = tomcat-user-unsubscribe@jakarta.apache.org > > > For additional commands, e-mail: > tomcat-user-help@jakarta.apache.org > > > > > > > > > >=20 > --------------------------------------------------------------------- > > To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org > > For additional commands, e-mail: = tomcat-user-help@jakarta.apache.org > > > >=20 > --------------------------------------------------------------------- > > To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org > > For additional commands, e-mail: = tomcat-user-help@jakarta.apache.org > > > > > > >=20 > --------------------------------------------------------------------- > To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org > For additional commands, e-mail: tomcat-user-help@jakarta.apache.org >=20 >=20 --------------------------------------------------------------------- To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: tomcat-user-help@jakarta.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: tomcat-user-help@jakarta.apache.org