The FreeBSD Diary

The FreeBSD Diary (TM)

Providing practical examples since 1998

If you buy from Amazon USA, please support us by using this link.
[ HOME | TOPICS | INDEX | WEB RESOURCES | BOOKS | CONTRIBUTE | SEARCH | FEEDBACK | FAQ | FORUMS ]
Starting stuff at boot time 5 May 1999
Share
Need more help on this topic? Click here
This article has no comments
Show me similar articles
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).


Share
Need more help on this topic? Click here
This article has no comments
Show me similar articles