Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 31 Mar 2000 09:43:42 -0800
From:      Alfred Perlstein <bright@wintelcom.net>
To:        "[ -dp- ]" <transmogrify@sympatico.ca>
Cc:        questions@FreeBSD.ORG
Subject:   Re: Where do those startup scripts go?
Message-ID:  <20000331094341.L21029@fw.wintelcom.net>
In-Reply-To: <38E4D250.4DFC76D4@sympatico.ca>; from transmogrify@sympatico.ca on Fri, Mar 31, 2000 at 11:29:04AM -0500
References:  <38E4D250.4DFC76D4@sympatico.ca>

next in thread | previous in thread | raw e-mail | index | archive | help
* [ -dp- ] <transmogrify@sympatico.ca> [000331 08:55] wrote:
> good morning:
> 
> 	It has been said to _never_ place startup scripts in rc.conf, rc.local,
> etc, due to the fact
> that they are regularly parsed by other programs. Sounds fine, however
> isn't /usr/local/etc/rc.d referenced to 
> via rc.conf? And this being the case, we would assume that it will be
> parsed every time rc.conf is called? If rc.conf is called again during
> runtime, I am sure that it is called to with a variable so that the
> entire file is not parsed ? Please correct me if I am wrong, this came
> to me in a dream. I myslef have always referenced them from rc.conf
> since day one, and my machine has yet to blow up.

I already explained this to you, if you want you can add commands
to /etc/rc.local or /usr/local/etc/rc.d/apache.sh (or mysql.sh or
whatever as long as it ends with .sh)

rc.conf should only be used to set variables like: foo="bar"
it shouldn't be used to run any commands because it is sourced
by multiple startup and periodic scripts.

-- 
-Alfred Perlstein - [bright@wintelcom.net|alfred@freebsd.org]
"I have the heart of a child, I keep it in a jar on my desk."


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?20000331094341.L21029>