Date: Thu, 22 Feb 2007 16:25:26 -0600 From: Brooks Davis <brooks@freebsd.org> To: Vasil Dimov <vd@freebsd.org> Cc: freebsd-rc@freebsd.org Subject: Re: Setting rc scripts default values Message-ID: <20070222222526.GA90840@lor.one-eyed-alien.net> In-Reply-To: <20070222172658.GA40593@qlovarnika.bg.datamax> References: <20070222172658.GA40593@qlovarnika.bg.datamax>
next in thread | previous in thread | raw e-mail | index | archive | help
--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--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20070222222526.GA90840>