Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 06 Feb 2008 17:22:52 +0000
From:      Alex Zbyslaw <xfb52@dial.pipex.com>
To:        freebsd-questions@freebsd.org
Subject:   Re: script to be executed on system startup.
Message-ID:  <47A9ECEC.5040107@dial.pipex.com>
In-Reply-To: <20080206174632.B4330@wojtek.tensor.gdynia.pl>
References:  <1563a4fd0802060609j59451879h3920be790d7667c0@mail.gmail.com>	<20080206152833.U3736@wojtek.tensor.gdynia.pl>	<20080206154317.GC18883@gizmo.acns.msu.edu> <20080206174632.B4330@wojtek.tensor.gdynia.pl>

next in thread | previous in thread | raw e-mail | index | archive | help
Wojciech Puchar wrote:

>>
>> No, don't add anything to rc.local.
>
>
> no because of?

The manual page.

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

It's there for backwards compatibility and you'll be bit when it goes away.

--Alex




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