The FreeBSD Diary |
![]() |
(TM) | Providing practical examples since 1998 |
|
Starting stuff at boot time
5 May 1999
|
|
|
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). |
|