rc.local equivalent

Brian bri at sonicboom.org
Thu Jul 12 06:18:12 UTC 2007

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 
     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.


More information about the freebsd-stable mailing list