Things look quiet here. But I've been doing a lot of blogging at
dan.langille.org because I prefer WordPress now.
Not all my posts there are FreeBSD related.
I am in the midst of migrating The FreeBSD Diary over to WordPress
(and you can read about that here).
Once the migration is completed, I'll move the FreeBSD posts into the
new FreeBSD Diary website.
This article talks
about how to get scripts to execute each time the box is rebooted. This is handy
for ensuring certain programs are always running.
[Note: the original article title was "/etc/autoexec.bat | how to start
things at boot time". This was discarded because the humour assumed a
familiarity with DOS.]
/usr/local/etc/rc.d/ is your friend
The /usr/local/etc/rc.d/ directory is one of the default startup
directories. If you look at /etc/defaults/rc.conf, you'll find this:
This setting determines which directories are scanned for shell scripts at startup.
Executable files within these directories are run in alphabetical order. If
you need the files to be executed in a specific order, try numbering the files. For
example:
At one time, /etc/rc.local was the file into which you placed calls to the
various start up scripts. This feature remains for backwards compatibility but it
has been deprecated. Use /usr/local/etc/rc.d/ instead.