Return-Path: Delivered-To: apmail-jakarta-tomcat-user-archive@apache.org Received: (qmail 32360 invoked from network); 7 Aug 2003 18:00:09 -0000 Received: from exchange.sun.com (192.18.33.10) by daedalus.apache.org with SMTP; 7 Aug 2003 18:00:09 -0000 Received: (qmail 3015 invoked by uid 97); 7 Aug 2003 18:02:50 -0000 Delivered-To: qmlist-jakarta-archive-tomcat-user@nagoya.betaversion.org Received: (qmail 3008 invoked from network); 7 Aug 2003 18:02:50 -0000 Received: from daedalus.apache.org (HELO apache.org) (208.185.179.12) by nagoya.betaversion.org with SMTP; 7 Aug 2003 18:02:50 -0000 Received: (qmail 30800 invoked by uid 500); 7 Aug 2003 17:59:51 -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 30786 invoked from network); 7 Aug 2003 17:59:51 -0000 Received: from plmler4.mail.eds.com (199.228.142.74) by daedalus.apache.org with SMTP; 7 Aug 2003 17:59:51 -0000 Received: from plmlir3.mail.eds.com (plmlir3-2.mail.eds.com [199.228.142.133]) by plmler4.mail.eds.com (8.11.6p2/8.11.6) with ESMTP id h77Hxtj27294 for ; Thu, 7 Aug 2003 12:59:55 -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 h77HxrF21165 for ; Thu, 7 Aug 2003 12:59:54 -0500 (CDT) 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 h77HxrP21159 for ; Thu, 7 Aug 2003 12:59:53 -0500 (CDT) Received: by USPLM101.txpln.us.eds.com with Internet Mail Service (5.5.2656.59) id ; Thu, 7 Aug 2003 12:59:51 -0500 Message-ID: <2928D6FE55D5584390909578CAC8397D5F7BFD@usplm216.txpln.us.eds.com> From: "Lott, Carey" To: "'tomcat-user@jakarta.apache.org'" Subject: Starting tomcat from init scripts (HP/UX) Date: Thu, 7 Aug 2003 12:59:48 -0500 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2656.59) Content-Type: text/plain X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N 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 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. 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. However, when Tomcat tries to start at boot time the run control information states that it can't start as root, and it is 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="/bto/appl/apache/jakarta-tomcat-4.0.4" export CATALINA_HOME JAVA_HOME="/opt/java1.4" export JAVA_HOME CLASSPATH="/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.jar:/ opt/java1.4/lib/htmlconverter.jar:/opt/java1.4/jre/lib/charsets.jar:/opt/jav a1.4/jre/lib/javaplugin.jar:/opt/java1.4/jre/lib/ext/dnsns.jar:/opt/java1.4/ jre/lib/ext/localedata.jar:/opt/java1.4/jre/lib/ext/ldapsec.jar:/opt/java1.4 /jre/lib/jce.jar:/opt/java1.4/jre/lib/jsse.jar:.:/bto/appl/apache/jakarta-to mcat-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/pr oduct/8.0.6/jdbc/lib/classes111.zip" export CLASSPATH case $1 in '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') /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 ---------------------------------------------------------------- Thank you for any help you can offer. Carey Carey Lott Web Tools Support Infrastructure Storage & Tools Support EDS BellSouth carey.lott@eds.com carey@imcingular.com --------------------------------------------------------------------- To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: tomcat-user-help@jakarta.apache.org