From owner-freebsd-questions Fri Mar 31 9:18:50 2000 Delivered-To: freebsd-questions@freebsd.org Received: from fw.wintelcom.net (ns1.wintelcom.net [209.1.153.20]) by hub.freebsd.org (Postfix) with ESMTP id 1EA7537B948 for ; Fri, 31 Mar 2000 09:18:48 -0800 (PST) (envelope-from bright@fw.wintelcom.net) Received: (from bright@localhost) by fw.wintelcom.net (8.10.0/8.10.0) id e2VHhg601051; Fri, 31 Mar 2000 09:43:42 -0800 (PST) Date: Fri, 31 Mar 2000 09:43:42 -0800 From: Alfred Perlstein To: "[ -dp- ]" Cc: questions@FreeBSD.ORG Subject: Re: Where do those startup scripts go? Message-ID: <20000331094341.L21029@fw.wintelcom.net> References: <38E4D250.4DFC76D4@sympatico.ca> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0.1i In-Reply-To: <38E4D250.4DFC76D4@sympatico.ca>; from transmogrify@sympatico.ca on Fri, Mar 31, 2000 at 11:29:04AM -0500 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG * [ -dp- ] [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