From owner-freebsd-rc@FreeBSD.ORG Thu Feb 22 22:25:32 2007 Return-Path: X-Original-To: freebsd-rc@freebsd.org Delivered-To: freebsd-rc@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 4580416A400 for ; Thu, 22 Feb 2007 22:25:32 +0000 (UTC) (envelope-from brooks@lor.one-eyed-alien.net) Received: from lor.one-eyed-alien.net (grnl-static-02-0046.dsl.iowatelecom.net [69.66.56.110]) by mx1.freebsd.org (Postfix) with ESMTP id 0180E13C442 for ; Thu, 22 Feb 2007 22:25:31 +0000 (UTC) (envelope-from brooks@lor.one-eyed-alien.net) Received: from lor.one-eyed-alien.net (localhost [127.0.0.1]) by lor.one-eyed-alien.net (8.13.8/8.13.8) with ESMTP id l1MMPUtx090870; Thu, 22 Feb 2007 16:25:30 -0600 (CST) (envelope-from brooks@lor.one-eyed-alien.net) Received: (from brooks@localhost) by lor.one-eyed-alien.net (8.13.8/8.13.8/Submit) id l1MMPQFU090868; Thu, 22 Feb 2007 16:25:26 -0600 (CST) (envelope-from brooks) Date: Thu, 22 Feb 2007 16:25:26 -0600 From: Brooks Davis To: Vasil Dimov Message-ID: <20070222222526.GA90840@lor.one-eyed-alien.net> References: <20070222172658.GA40593@qlovarnika.bg.datamax> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="oyUTqETQ0mS9luUI" Content-Disposition: inline In-Reply-To: <20070222172658.GA40593@qlovarnika.bg.datamax> User-Agent: Mutt/1.5.11 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-3.0 (lor.one-eyed-alien.net [127.0.0.1]); Thu, 22 Feb 2007 16:25:31 -0600 (CST) Cc: freebsd-rc@freebsd.org Subject: Re: Setting rc scripts default values X-BeenThere: freebsd-rc@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Discussion related to /etc/rc.d design and implementation." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 22 Feb 2007 22:25:32 -0000 --oyUTqETQ0mS9luUI Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Feb 22, 2007 at 07:26:58PM +0200, Vasil Dimov wrote: > Hi, >=20 > Is there any special reason to write the rc scripts this way: >=20 > load_rc_config "$name" > : ${rsyncd_enable=3D"NO"} >=20 > instead of this way: >=20 > rsyncd_enable=3D"NO" > load_rc_config "$name" >=20 > apache does it this way: >=20 > apache_enable=3D${apache_enable-"NO"} > load_rc_config $name >=20 > but I think it can safely be changed to >=20 > apache_enable=3D"NO" > load_rc_config $name >=20 > What did I miss... load_rc_config doesn't reread /etc/rc.conf every time. -- Brooks --oyUTqETQ0mS9luUI Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (FreeBSD) iD8DBQFF3hhVXY6L6fI4GtQRArvVAJ9Pw2GmlRf65N/zHLB54qLVRavSrwCgkSjR BBrR8U4qWsRVs11uOk+xDQA= =jdH/ -----END PGP SIGNATURE----- --oyUTqETQ0mS9luUI--