Defcon-1-Logo

           [Home]    [FBSD Articles]    [Scripts Corner]    [Contribute]    [Search]    [FBSD Links]    [Files]

About Us

FreeBSD Articles
  *Hardware
  *Networking
  *Security
  *Software
  *X Windows


Files / Scripts
Newbies Corner
Tech. Talk
Tips and Tricks


FreeBSD Links

Articles in other
Languages :
  *French Articles
  *Spanish Articles

Want to Help ?
 
   Click Here

Email Users5

Search:
 

 


FreeBSD Search:


 

 

Powered-By-Apache-Logo

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

Email Us

ghostrdr@defcon1.org

This site cannot be duplicated without permission

© 1998 - 2010 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.