Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 16 Aug 2001 14:11:14 -0700
From:      "Crist J. Clark" <cristjc@earthlink.net>
To:        Martin McCormick <martin@dc.cis.okstate.edu>
Cc:        freebsd-questions@FreeBSD.ORG
Subject:   Re: rc.d Is not running anything on boot
Message-ID:  <20010816141114.I4232@blossom.cjclark.org>
In-Reply-To: <E15XU5y-0004i4-00@dc.cis.okstate.edu>; from martin@dc.cis.okstate.edu on Thu, Aug 16, 2001 at 03:50:26PM -0500
References:  <E15XU5y-0004i4-00@dc.cis.okstate.edu>

next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, Aug 16, 2001 at 03:50:26PM -0500, Martin McCormick wrote:
> 	Is there any documentation for FreeBSD that describes in
> detail how rc.d works?

man 8 rc

     The rc.d directories contain scripts which will be automatically executed
     at boot time.  The specified directories are processed immediately after
     rc.local is executed.  (See below for details on how to specify directo-
     ries to check.)  The following key points apply to the scripts within
     each directory:

     o   Scripts are only executed if their basename(1) matches the shell
         globbing pattern *.sh, and they are executable.  Any other files or
         directories present within the directory are silently ignored.
     o   When a script is executed, it is passed the string ``start'' as its
         first and only argument.  All rc.d scripts expected to handle this
         argument appropriately.
     o   The scripts within each directory are executed in lexicographical
         order.  If a specific order is required, numbers may be used as a
         prefix to the existing filenames, so for example 100.foo would be
         executed before 200.bar; without the numeric prefixes the opposite
         would be true.

Pay special attention to the first one. Does your script end in '.sh'?
-- 
Crist J. Clark                           cjclark@alum.mit.edu

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20010816141114.I4232>