From owner-freebsd-questions@FreeBSD.ORG Wed Oct 1 10:53:41 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 2DE32106578D for ; Wed, 1 Oct 2008 10:53:41 +0000 (UTC) (envelope-from erikt@midgard.homeip.net) Received: from ch-smtp02.sth.basefarm.net (ch-smtp02.sth.basefarm.net [80.76.149.213]) by mx1.freebsd.org (Postfix) with ESMTP id AFA388FC19 for ; Wed, 1 Oct 2008 10:53:40 +0000 (UTC) (envelope-from erikt@midgard.homeip.net) Received: from c83-255-48-78.bredband.comhem.se ([83.255.48.78]:61956 helo=falcon.midgard.homeip.net) by ch-smtp02.sth.basefarm.net with esmtp (Exim 4.68) (envelope-from ) id 1KkzKt-0008Tn-8j for freebsd-questions@freebsd.org; Wed, 01 Oct 2008 12:53:39 +0200 Received: (qmail 3901 invoked from network); 1 Oct 2008 12:53:37 +0200 Received: from owl.midgard.homeip.net (10.1.5.7) by falcon.midgard.homeip.net with ESMTP; 1 Oct 2008 12:53:37 +0200 Received: (qmail 47379 invoked by uid 1001); 1 Oct 2008 12:53:37 +0200 Date: Wed, 1 Oct 2008 12:53:37 +0200 From: Erik Trulsson To: Da Rock Message-ID: <20081001105337.GA47338@owl.midgard.homeip.net> References: <1222839623.8573.5.camel@laptop1.herveybayaustralia.com.au> <1222847649.8573.11.camel@laptop1.herveybayaustralia.com.au> <84763862@bb.ipt.ru> <1222857587.27652.8.camel@laptop1.herveybayaustralia.com.au> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1222857587.27652.8.camel@laptop1.herveybayaustralia.com.au> User-Agent: Mutt/1.5.18 (2008-05-17) X-Originating-IP: 83.255.48.78 X-Scan-Result: No virus found in message 1KkzKt-0008Tn-8j. X-Scan-Signature: ch-smtp02.sth.basefarm.net 1KkzKt-0008Tn-8j fe86102f11111783ffc580ae9fcf65b8 Cc: freebsd-questions@freebsd.org Subject: Re: mysql rc script failure - correction: most installed rc scripts not running manually 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, 01 Oct 2008 10:53:41 -0000 On Wed, Oct 01, 2008 at 08:39:47PM +1000, Da Rock wrote: > > On Wed, 2008-10-01 at 12:57 +0400, Boris Samorodov wrote: > > Da Rock writes: > > > On Wed, 2008-10-01 at 15:40 +1000, Da Rock wrote: > > > > >> Has anyone else had trouble with starting mysql server with the rc > > >> script? > > >> > > >> I've only just installed from ports (as a dependency, mind) and > > >> technically it should just start when you run the rc script - it sets up > > >> the db dirs and stuff so it can just run. But I can't get it to do the > > >> setup stuff automatically, and so the script fails. I've done the setup > > >> manually before so its no real biggy, but I imagine others would be more > > >> than a little frustrated. > > >> > > >> Anyone else have this trouble? I just realised I had to do this last > > >> time too... > > >> > > >> For reference: I'm starting the script manually for testing at this > > >> point (if that makes a difference- which I believe it shouldn't). > > > > > > Manually running port installed rc scripts is not working manually. I'm > > > trying mysql, courier-imap, and I've tried isc-dhcp in the past. None of > > > these will work when run manually- even on different machines and bsd > > > versions (all 6.x). > > > > > > Is it just me? > > > > Sorry for may be a dumb question: did you define an > > _enable="YES" at /etc/rc.conf[.local]? For more info > > you may look at the script you are trying to start. > > So are you saying I can't start a script manually without enabling it in > rc.conf? I was not under that impression... I thought it could be > started manually for testing before setting it for automatic startup- > based on my reading in the handbook and man pages. Yes, you can. Use forcestart/forcestop instead of start/stop when running the rc script if you do not have it enabled in rc.conf. This is documented in rc(8) (and is very easily overlooked if you don't know what you are looking for.) -- Erik Trulsson ertr1013@student.uu.se