From owner-freebsd-questions@FreeBSD.ORG Thu Dec 2 21:00:24 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 9AD3716A549 for ; Thu, 2 Dec 2004 21:00:24 +0000 (GMT) Received: from 9.hellooperator.net (cpc3-cdif2-3-0-cust202.cdif.cable.ntl.com [81.103.32.202]) by mx1.FreeBSD.org (Postfix) with ESMTP id E6C3B43D41 for ; Thu, 2 Dec 2004 21:00:20 +0000 (GMT) (envelope-from rasputin@hellooperator.net) Received: from rasputin by 9.hellooperator.net with local (Exim 4.43) id 1CZy3n-0000I0-VO for freebsd-questions@freebsd.org; Thu, 02 Dec 2004 21:00:19 +0000 Date: Thu, 2 Dec 2004 21:00:19 +0000 From: Dick Davies To: FreeBSD Questions Message-ID: <20041202210019.GA23230@lb.tenfour> References: <20041202163900.GA14829@akroteq.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.2.1i Sender: Dick Davies 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: Dick Davies List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 02 Dec 2004 21:00:24 -0000 * 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. > -- Tempers are wearing thin. Let's hope some robot doesn't kill everybody. - Bender Rasputin :: Jack of All Trades - Master of Nuns