Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 27 May 2004 09:30:47 -0700
From:      "Kevin Oberman" <oberman@es.net>
To:        Oliver Eikemeier <eikemeier@fillmore-labs.com>
Cc:        Rob <stopspam@users.sourceforge.net>
Subject:   Re: Where to put my own startup script (/etc/rc.local ?) 
Message-ID:  <20040527163047.2BB485D09@ptavv.es.net>
In-Reply-To: Your message of "Thu, 27 May 2004 08:24:30 %2B0200." <40B5899E.7030506@fillmore-labs.com> 

next in thread | previous in thread | raw e-mail | index | archive | help
> Date: Thu, 27 May 2004 08:24:30 +0200
> From: Oliver Eikemeier <eikemeier@fillmore-labs.com>
> Sender: owner-freebsd-current@freebsd.org
> 
> Bruce M Simpson wrote:
> 
> > On Tue, May 25, 2004 at 02:08:12PM -0700, Kevin Oberman wrote:
> > 
> >>You can put them in /usr/local/etc/rc.d or /etc/rc.d. The former is the
> >>more acceptable and should be used if the startup can be run at the end
> >>of the startup.
> > 
> > Take a look at the net-mgmt/snmptt port I just committed. This borrows from
> > the net/quagga port in the area of rc script placement - showing how to
> > place it in an appropriate location depending on OSVERSION.
> 
> While putting *local* (e.g. not belonging to a port) scripts into rc.local is
> reasonable on -STABLE and -CURRENT, ports should *not* put scripts in
> /etc/rc.d. I did this once in an attempt to have OpenLDAP start early, hoping
> for this issue to be resolved fast with PR 56736, but I seems there is no
> progress on this one. Sigh. Anyway, although I believe it is legal for a
> user to put his own scripts into /etc/rc.d, mergemaster(8) will complain when
> it finds them, see PR 64476.

Aside from a CUSTOM_RC_FILES variable, I REALLY thing the default on
this is backwards. The default should always be to fail-safe. If the
default is to delete a file, that is NOT safe.
-- 
R. Kevin Oberman, Network Engineer
Energy Sciences Network (ESnet)
Ernest O. Lawrence Berkeley National Laboratory (Berkeley Lab)
E-mail: oberman@es.net			Phone: +1 510 486-8634



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