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
[-- Attachment #1 --]
On Thu, Feb 22, 2007 at 07:26:58PM +0200, Vasil Dimov wrote:
> Hi,
>
> Is there any special reason to write the rc scripts this way:
>
> load_rc_config "$name"
> : ${rsyncd_enable="NO"}
>
> instead of this way:
>
> rsyncd_enable="NO"
> load_rc_config "$name"
>
> apache does it this way:
>
> apache_enable=${apache_enable-"NO"}
> load_rc_config $name
>
> but I think it can safely be changed to
>
> apache_enable="NO"
> load_rc_config $name
>
> What did I miss...
load_rc_config doesn't reread /etc/rc.conf every time.
-- Brooks
[-- Attachment #2 --]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (FreeBSD)
iD8DBQFF3hhVXY6L6fI4GtQRArvVAJ9Pw2GmlRf65N/zHLB54qLVRavSrwCgkSjR
BBrR8U4qWsRVs11uOk+xDQA=
=jdH/
-----END PGP SIGNATURE-----
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20070222222526.GA90840>
