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 ]

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.

Starting stuff at boot time 5 May 1999
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