Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 20 Aug 2001 01:27:33 -0700
From:      "Crist J. Clark" <cristjc@earthlink.net>
To:        Danny <dannyho@bigpond.net.au>
Cc:        questions@FreeBSD.ORG
Subject:   Re: /usr/local/etc/rc.d/ query?
Message-ID:  <20010820012733.H313@blossom.cjclark.org>
In-Reply-To: <000901c12937$d8617410$c701a8c0@oem>; from dannyho@bigpond.net.au on Mon, Aug 20, 2001 at 03:20:33PM %2B1000
References:  <000901c12937$d8617410$c701a8c0@oem>

next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, Aug 20, 2001 at 03:20:33PM +1000, Danny wrote:
> Hello
> 
> - I am trying to get bpalogin to startup "automatically" on FreeBSD 4.3
> - I would start bpalogin as "root"  like so "bpalogin -c /etc/bpalogin.conf"
> - I gave bpalogin.conf chmod 400 for securty
> - However, I tried creating a startup scrpt in /usr/local/etc/rc.d/ and gave
> the file chmod 755
> 
> - bpalogin refuse to startup properly
> 
> - Maybe there is anyother way to get bpalogin to startup in FreeBSD 4.3?

Did you RTFM, rc(8),

     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.

First, does your script end in '.sh' as the first bullet says?
-- 
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?20010820012733.H313>