Defcon1-Header
Tool-BarfreeBSD ArticlesSearch Our SiteHOMEfreeBSD LinksContribute to FreeBSD HelpFreeBSD FilesFreeBSD Script Corner

How to start things at boot time :

 At one time or another we've all wanted to have things automatically load up when that machine boots, to keep us from having to do it by hand, and thus making it a automatic function of the machine as it boots up. AKA: Like your Autoexec.bat file if you are familiar with DOS.

 The file you need to edit is the rc.conf located in the /usr/local/etc directory. Complete path located below.
                /usr/local/etc/rc.d/rc.conf

   Look in the /usr/local/etc/rc.d/ directory, this is one of the default startup directories. Checkout /etc/defaults/rc.conf, this is what the file looks like :

     # grep local_start /etc/defaults/rc.conf
     local_startup="/usr/local/etc/rc.d /usr/X11R6/etc/rc.d" # startup script dirs.

   This setting determines which directories that are looked at first, and then looks at the shell scripts during 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:

     000Program.1.sh
     010Program.2.sh
     020Program.3.sh


GhostRdr

© 1997 - 20013 Defcon1, www.defcon1.org , Copyrights for all materials on this web site are held by the individual authors, artists, photographers or creators. Materials may not be reproduced or otherwise distributed without permission of www.defcon1.org and the content's original author.

Defcon1-Header2
Tool-Bar-2Defcon1  Webmail