From owner-freebsd-questions@FreeBSD.ORG Wed Apr 12 19:46:36 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 A847A16A403 for ; Wed, 12 Apr 2006 19:46:36 +0000 (UTC) (envelope-from freebsd@redry.net) Received: from luke.segpub.com.au (luke.segpub.com.au [64.49.254.38]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3ADC143D4C for ; Wed, 12 Apr 2006 19:46:35 +0000 (GMT) (envelope-from freebsd@redry.net) Received: (qmail 1560 invoked by uid 89); 13 Apr 2006 05:46:35 +1000 Received: from unknown (HELO ?192.168.1.34?) (eoghan@redry.net@213.202.165.149) by 0 with SMTP; 13 Apr 2006 05:46:35 +1000 Message-ID: <443D5915.5090204@redry.net> Date: Wed, 12 Apr 2006 20:46:29 +0100 From: eoghan User-Agent: Thunderbird 1.5 (Macintosh/20051201) MIME-Version: 1.0 To: Matthew Seaman References: <443D4EA9.9090209@redry.net> <443D55C6.4010801@infracaninophile.co.uk> In-Reply-To: <443D55C6.4010801@infracaninophile.co.uk> Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-questions@freebsd.org 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 19:46:36 -0000 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... Thanks Eoghan