From users-return-190817-apmail-tomcat-users-archive=tomcat.apache.org@tomcat.apache.org Sun Feb 01 13:44:51 2009 Return-Path: Delivered-To: apmail-tomcat-users-archive@www.apache.org Received: (qmail 42898 invoked from network); 1 Feb 2009 13:44:51 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 1 Feb 2009 13:44:51 -0000 Received: (qmail 71383 invoked by uid 500); 1 Feb 2009 13:44:39 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 71350 invoked by uid 500); 1 Feb 2009 13:44:39 -0000 Mailing-List: contact users-help@tomcat.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Tomcat Users List" Delivered-To: mailing list users@tomcat.apache.org Received: (qmail 71339 invoked by uid 99); 1 Feb 2009 13:44:39 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 01 Feb 2009 05:44:39 -0800 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of bmillett@gmail.com designates 66.249.90.178 as permitted sender) Received: from [66.249.90.178] (HELO ik-out-1112.google.com) (66.249.90.178) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 01 Feb 2009 13:44:30 +0000 Received: by ik-out-1112.google.com with SMTP id b35so298097ika.0 for ; Sun, 01 Feb 2009 05:44:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:subject:from:to:in-reply-to :references:content-type:date:message-id:mime-version:x-mailer; bh=gqepZ0JL7KvmlbNKpjifYT6r6I/COYbHPsxgLoaamDw=; b=Zk5jzRszOhAmoCMbK83oq0vOgaugx46yZnWwgec/fiHJcx9iheCAnJSDQT5QiQaO0A yEn3f7Bz7FvdvZjo8pbXXRRZ2DM6/Ily6Ef1BeW4fG4ojmbiD1vc1DdE+SwvOZ3skrZ5 vs/d5vd2x6t2ZNEOXUdXcC1rNxpYjo+Oa9DuE= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=subject:from:to:in-reply-to:references:content-type:date:message-id :mime-version:x-mailer; b=nITcGr88fJEuT8V0QxSLoOCNQE2n4SghRt9v5Cdw8g67donKrlNrhAkiUPx2wZa7y8 zbBpOZmADc7C3kkGnQXF17pH4m2dL41aW/dIhirwNfAuwhdY8dS7WilkcvP1gFJu0/q7 HwUHCH39O/xUph7IYFxIBfwX54fXNdy3Ca2os= Received: by 10.210.44.19 with SMTP id r19mr2381395ebr.194.1233495848743; Sun, 01 Feb 2009 05:44:08 -0800 (PST) Received: from ?192.168.0.17? ([66.190.129.112]) by mx.google.com with ESMTPS id 23sm4194242eya.56.2009.02.01.05.44.06 (version=SSLv3 cipher=RC4-MD5); Sun, 01 Feb 2009 05:44:07 -0800 (PST) Subject: Re: jsvc problem with PID From: Brian Millett To: Tomcat Users List In-Reply-To: <711a73df0902010020j3ee1358o4a38ffb9cf9d796d@mail.gmail.com> References: <711a73df0902010020j3ee1358o4a38ffb9cf9d796d@mail.gmail.com> Content-Type: multipart/signed; micalg="pgp-sha1"; protocol="application/pgp-signature"; boundary="=-EK5rcwHIGGxesuVbPISh" Date: Sun, 01 Feb 2009 07:44:04 -0600 Message-Id: <1233495844.5237.38.camel@dufus> Mime-Version: 1.0 X-Mailer: Evolution 2.24.3 (2.24.3-1.fc10) X-Virus-Checked: Checked by ClamAV on apache.org --=-EK5rcwHIGGxesuVbPISh Content-Type: text/plain Content-Transfer-Encoding: quoted-printable On Sun, 2009-02-01 at 08:20 +0000, Dave Pawson wrote: > Fedora 10, Tomcat 6 >=20 > Looking to set up a startup/shutdown script > based on > http://www.mythic-beasts.com/support/tomcat-initscript > with paths corrected. >=20 > Adding debug I'm seeing, in the logs >=20 > INFO: Jk running ID=3D0 time=3D0/27 config=3Dnull > Feb 1, 2009 7:18:44 AM org.apache.catalina.startup.Catalina start > INFO: Server startup in 929 ms > 01/02/2009 07:23:58 5575 jsvc.exec error: Cannot open PID file > /var/run/jsvc.pid, PID is 5575 > 01/02/2009 07:23:58 5574 jsvc.exec error: Service exit with a return > value of 255 >=20 > I.e. the PID isn't being written to /var/run/jsvc.pid >=20 > Any suggestions please? >=20 Well, I use the jsvc daemon to start my tomcat on fedora 10. Tomcat 6 your mileage will vary, but here is my start stript. I also use the apr native libs hence the -Djava.library.path=3D/usr/local/apr/lib and I've also setup monitoring=20 #!/bin/sh # # chkconfig: 345 86 15 # description: Tomcat Server # # Small shell script to show how to start/stop Tomcat using jsvc # If you want to have Tomcat running on port 80 please modify the server.xml # file: # # # # # You need a developement version of Tomcat (Apache Tomcat/4.1-dev) # # Adapt the following lines to your configuration JAVA_HOME=3D/usr/jdk CATALINA_HOME=3D/opt/tomcat CATALINA_BASE=3D/opt/webBaseDir DAEMON_HOME=3D/usr/local/bin TOMCAT_USER=3Dtomcat TMP_DIR=3D$CATALINA_BASE/temp CATALINA_OPTS=3D" -Djava.library.path=3D/usr/local/apr/lib -Djava.awt.headless=3Dtrue -Xms128M -Xmx512M -XX:+UseParallelOldGC -Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.port=3D9086 -Dcom.sun.management.jmxremote.ssl=3Dfalse -Dcom.sun.management.jmxremote.authenticate=3Dfalse " CLASSPATH=3D\ $CATALINA_HOME/bin/commons-daemon.jar:\ $CATALINA_HOME/bin/tomcat-juli.jar:\ $CATALINA_HOME/bin/bootstrap.jar case "$1" in start) # # Start Tomcat # $DAEMON_HOME/jsvc \ -user $TOMCAT_USER \ -home $JAVA_HOME \ -jvm server \ -Dcatalina.home=3D$CATALINA_HOME \ -Dcatalina.base=3D$CATALINA_BASE \ -Djava.util.logging.manager=3Dorg.apache.juli.ClassLoaderLogManager \ -Djava.util.logging.config.file=3D $CATALINA_BASE/conf/logging.properties \ -Djava.endorsed.dirs=3D$CATALINA_BASE/endorsed \ -Djava.io.tmpdir=3D$TMP_DIR \ -outfile $CATALINA_BASE/logs/catalina.out \ -errfile '&1' \ $CATALINA_OPTS \ -cp $CLASSPATH \ org.apache.catalina.startup.Bootstrap # # To get a verbose JVM #-verbose \ # To get a debug of jsvc. #-debug \ ;; stop) # # Stop Tomcat # PID=3D`cat /var/run/jsvc.pid` kill $PID ;; *) echo "Usage tomcat.sh start/stop" exit 1 ;; esac --=20 Brian Millett - [ Londo and Sinclair, "A Voice in the Wilderness I"] "If the Narns all stood together in one place and hated all at the same time, that hatred could fly across dozens of light years and reduce Centauri Prime to a ball of ash. That's how much they hate *us*." 'You don't have to respond in kind.' "Of course we do. It is a natural law. Physics tells us that for every action, there must be an equal and opposite reaction. They hate us, we hate them, they hate us back and so, here we are, victims of mathematics." --=-EK5rcwHIGGxesuVbPISh Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (GNU/Linux) iEYEABECAAYFAkmFpyQACgkQyN1977nSTbK2pACZAcgm7bhC5dl9itpMpFC5471R 1NQAn3c5S79eLK2NrCbTlRlJEgJd09kZ =oHKm -----END PGP SIGNATURE----- --=-EK5rcwHIGGxesuVbPISh--