From owner-freebsd-questions@FreeBSD.ORG Wed Apr 12 21:13:37 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 019EE16A401 for ; Wed, 12 Apr 2006 21:13:36 +0000 (UTC) (envelope-from wash@wananchi.com) Received: from ns2.wananchi.com (ns2.wananchi.com [62.8.64.4]) by mx1.FreeBSD.org (Postfix) with ESMTP id BE53C43D73 for ; Wed, 12 Apr 2006 21:13:35 +0000 (GMT) (envelope-from wash@wananchi.com) Received: from wash by ns2.wananchi.com with local (Exim 4.60 #0 (FreeBSD 4.11-STABLE)) id 1FTmeb-000JoE-BA by authid for ; Thu, 13 Apr 2006 00:13:33 +0300 Date: Thu, 13 Apr 2006 00:13:33 +0300 From: Odhiambo Washington To: freebsd-questions@freebsd.org Message-ID: <20060412211333.GB74030@ns2.wananchi.com> Mail-Followup-To: Odhiambo Washington , freebsd-questions@freebsd.org References: <443D4EA9.9090209@redry.net> <443D55C6.4010801@infracaninophile.co.uk> <443D5915.5090204@redry.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <443D5915.5090204@redry.net> X-Disclaimer: Any views expressed in this message, where not explicitly attributed otherwise, are mine alone!. X-Mailer: Mutt 1.5.11 (2005-09-15) X-Designation: Systems Administrator, Wananchi Online Ltd. X-Location: Nairobi, KE, East Africa. User-Agent: Mutt/1.5.11 Subject: Re: stop/start services X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 12 Apr 2006 21:13:37 -0000 * On 12/04/06 20:46 +0100, eoghan wrote: | Matthew Seaman wrote: | >eoghan wrote: | > | >>I asked a question about stopping/starting tomcat, but I suppose I didnt | >>ask it right. | >>What I should have asked is: | >>How do I stop/start services that I have enabled in my rc.conf, such as | >>mysql, tomcat etc. I have tried from my rc.d/ with tomcat but it will | >>not work for me... | > | >Like this: | > | > /usr/local/etc/rc.d/tomcat.sh start | > | >If that doesn't print out anything then double check what's in /etc/rc.conf | >If the service apparently starts up, but then you find it's not running | >a few seconds later, then check any log files that application uses -- it's | >quite often the case that there's a configuration fubar somewhere that is | >causing the service to give up. | > | > Cheers, | > | > Matthew | > | | Hi Matthew, | Well I have the service enabled in my rc.conf... so going to | localhost:8180 shows me the default tomcat page saying its working | etc... the jsp examples work fine. | When i try /usr/local/etc/rc.d/tomcat55.sh stop | i get: | tomcat55 not running? (check /var/run/tomcat55.pid) | Thats it. tomcat55.pid contains 2039. | I created a jsp file with just plain html in it... but when i browse to | it I get a HTTP 500 error (exception report). | I have the file in the correct place according to the docs so Im not | sure why is not working... I have originally some small piece of jsp but | figured Id have to restart the server in order for it to work, which is | what Im trying to do now... Have you checked that the script refers to the correct pid file? -Wash http://www.netmeister.org/news/learn2quote.html DISCLAIMER: See http://www.wananchi.com/bms/terms.php -- +======================================================================+ |\ _,,,---,,_ | Odhiambo Washington Zzz /,`.-'`' -. ;-;;,_ | Wananchi Online Ltd. www.wananchi.com |,4- ) )-,_. ,\ ( `'-'| Tel: +254 20 313985-9 +254 20 313922 '---''(_/--' `-'\_) | GSM: +254 722 743223 +254 733 744121 +======================================================================+ It is against the law for a monster to enter the corporate limits of Urbana, Illinois.