From owner-freebsd-questions@FreeBSD.ORG Sun Dec 9 17:56:53 2007 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E469816A419 for ; Sun, 9 Dec 2007 17:56:53 +0000 (UTC) (envelope-from erikt@midgard.homeip.net) Received: from ch-smtp02.sth.basefarm.net (ch-smtp02.sth.basefarm.net [80.76.149.213]) by mx1.freebsd.org (Postfix) with ESMTP id 9B7A613C457 for ; Sun, 9 Dec 2007 17:56:53 +0000 (UTC) (envelope-from erikt@midgard.homeip.net) Received: from c83-253-25-183.bredband.comhem.se ([83.253.25.183]:62980 helo=falcon.midgard.homeip.net) by ch-smtp02.sth.basefarm.net with esmtp (Exim 4.68) (envelope-from ) id 1J1QOa-0006lF-7j for freebsd-questions@freebsd.org; Sun, 09 Dec 2007 18:56:52 +0100 Received: (qmail 83538 invoked from network); 9 Dec 2007 18:56:49 +0100 Received: from owl.midgard.homeip.net (10.1.5.7) by falcon.midgard.homeip.net with ESMTP; 9 Dec 2007 18:56:49 +0100 Received: (qmail 85568 invoked by uid 1001); 9 Dec 2007 18:56:49 +0100 Date: Sun, 9 Dec 2007 18:56:49 +0100 From: Erik Trulsson To: Pollywog Message-ID: <20071209175649.GA85447@owl.midgard.homeip.net> Mail-Followup-To: Pollywog , freebsd-questions@freebsd.org References: <200712091732.02238.lists-fbsd@shadypond.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200712091732.02238.lists-fbsd@shadypond.com> User-Agent: Mutt/1.5.16 (2007-06-09) X-Originating-IP: 83.253.25.183 X-Scan-Result: No virus found in message 1J1QOa-0006lF-7j. X-Scan-Signature: ch-smtp02.sth.basefarm.net 1J1QOa-0006lF-7j 117872e881c8c29886d63524a60d18c7 Cc: freebsd-questions@freebsd.org Subject: Re: question about ordering of lines in rc.conf X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 09 Dec 2007 17:56:54 -0000 On Sun, Dec 09, 2007 at 05:31:59PM +0000, Pollywog wrote: > It appears that the order of the *_enable="YES" lines in /etc/rc.conf is > important. I am looking at a HOWTO for HPLIP in which the author suggests > adding two lines in a certain order. > > Since I recently had a problem with jabberd starting before myslq was ready to > accept connections and I just found that jabberd_enable="YES" precedes > mysql_enable="YES" in my rc.conf, I am wondering whether order is important. > Can anyone provide an answer? > > I solved the problem I was having with jabberd but in a different way. > The ordering of the lines in /etc/rc.conf is not important. The only time order matters in /etc/rc.conf is if you were to set the same variable at two different lines. In that case only the last value would be used. In particular the ordering of lines within /etc/rc.conf does not influence in which order various services should be started. There are other mechanisms which control that. Read the rc(8) and rcorder(8) manpages for all the gory details. -- Erik Trulsson ertr1013@student.uu.se