May 051999
 

Starting stuff at boot time

This article talks about the startup directories in FreeBSD.

See also how to start things at boot time.

Startup directories

FreeBSD has a very nice feature which is referred to as startup directories.  These directories are defined in /etc/rc.conf.   If you look in /etc/defaults/rc.conf you will see a line like this:
local_startup="/usr/local/etc/rc.d /usr/X11R6/etc/rc.d"

If you want something to be started at boot time, create a file which ends with .sh in a startup directory.  At boot time, each file ending with .sh will be executed.  The order of execution is alphabetical.

For more information, see the System Administration section of the FreeBSD FAQ (http://www.freebsd.org/FAQ/admin.html#AEN1539).