Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 18 Dec 2004 04:45:53 -0900
From:      Andy Firman <andy@firman.us>
To:        freebsd-questions@freebsd.org
Subject:   Re: /usr/local/etc/rc.d  vs  /etc/rc.conf question
Message-ID:  <20041218134553.GA24368@akroteq.com>
In-Reply-To: <20041202210019.GA23230@lb.tenfour>
References:  <20041202163900.GA14829@akroteq.com> <A62E611EBDA3E55081ACC696@utd49554.utdallas.edu> <20041202210019.GA23230@lb.tenfour>

next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, Dec 02, 2004 at 09:00:19PM +0000, Dick Davies wrote:
> * Paul Schmehl <pauls@utdallas.edu> [1210 17:10]:
> > --On Thursday, December 02, 2004 07:39:00 AM -0900 Andy Firman 
> > <andy@firman.us> 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.
>  
> > <http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/configtuning-rcng.html>;

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.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20041218134553.GA24368>