Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 11 Jul 2007 22:42:28 -0700
From:      Brian <bri@sonicboom.org>
To:        freebsd-stable@freebsd.org
Subject:   Re: rc.local equivalent
Message-ID:  <4695BF44.6090507@sonicboom.org>
In-Reply-To: <4695BB25.9040706@FreeBSD.org>
References:  <b024b3480707110642h33a7fb7dy105df656965d646a@mail.gmail.com> <4695BB25.9040706@FreeBSD.org>

next in thread | previous in thread | raw e-mail | index | archive | help
Doug Barton wrote:
> Morgan Reed wrote:
>
>   
>> Given that rc.local is now deprecated,
>>     
>
> Where did you get that idea?
>
>   
man rc.local on a freebsd 7 box says
     The rc utility is the command script which controls the automatic boot
     process after being called by init(8).  The rc.local script 
contains com-
     mands which are pertinent only to a specific site.  Typically, the
     /usr/local/etc/rc.d/ mechanism is used instead of rc.local these 
days but
     if you want to use rc.local, it is still supported.  In this case, it
     should source /etc/rc.conf and contain additional custom startup 
code for
     your system.  The best way to handle rc.local, however, is to 
separate it
     out into rc.d/ style scripts and place them under /usr/local/etc/rc.d/.
     The rc.conf file contains the global system configuration information
     referenced by the startup scripts, while rc.conf.local contains the 
local
     system configuration.  See rc.conf(5) for more information.

     The rc.d/ directories contain scripts which will be automatically exe-
     cuted at boot time and shutdown time.

So, rc.local, though not current is still supported.

Brian




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