From owner-freebsd-questions@FreeBSD.ORG Sat Dec 18 13:46:00 2004 Return-Path: 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 13D3416A4CE for ; Sat, 18 Dec 2004 13:46:00 +0000 (GMT) Received: from debian.akroteq.com (rdbck-static-72.palmer.mtaonline.net [12.17.141.72]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9135F43D53 for ; Sat, 18 Dec 2004 13:45:59 +0000 (GMT) (envelope-from andy@firman.us) Received: from andy by debian.akroteq.com with local (Exim 4.34) id 1Cfeu9-0006La-7e for freebsd-questions@freebsd.org; Sat, 18 Dec 2004 04:45:53 -0900 Date: Sat, 18 Dec 2004 04:45:53 -0900 From: Andy Firman To: freebsd-questions@freebsd.org Message-ID: <20041218134553.GA24368@akroteq.com> References: <20041202163900.GA14829@akroteq.com> <20041202210019.GA23230@lb.tenfour> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20041202210019.GA23230@lb.tenfour> User-Agent: Mutt/1.5.6i Subject: Re: /usr/local/etc/rc.d vs /etc/rc.conf question X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Andy Firman List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 18 Dec 2004 13:46:00 -0000 On Thu, Dec 02, 2004 at 09:00:19PM +0000, Dick Davies wrote: > * Paul Schmehl [1210 17:10]: > > --On Thursday, December 02, 2004 07:39:00 AM -0900 Andy Firman > > wrote: > > > > > > > >I just took over a FreeBSD box and there is a > > >proftpd.sh script in the /usr/local/etc/rc.d directory. > > > > > >There is also this entry in /etc/rc.conf: > > >proftpd_enable="YES" > > > > > >There is no need for entries in /etc/rc.conf > > >if the script exists in /usr/local/etc/rc.d right? > > > > > If you remove the /etc/rc.conf entry, you can still start the daemon > > manually (/usr/local/etc/rc.d/proftpd.sh start), but it will not start on > > boot. > > No, that still won't work (which makes sense if you think about it, how would the > script know whether the system is booting or not?). > > If you read the link below, you should see that you need > to 'scriptname forcestart' etc if there is no service=YES in rc.conf. > Similarly 'forcestop' to shut it down. > > > That is "Using rc under FreeBSD 5.X" but what about 4.10? On my 4.10 box, there is a mysql-server script in /usr/local/etc/rc.d and nothing in /etc/rc.conf, yet mysql-server starts up a boot time. Why? There is nothing wrong, I just want to know why.