Setting rc scripts default values

Vasil Dimov vd at FreeBSD.org
Thu Feb 22 17:51:44 UTC 2007


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...

-- 
Vasil Dimov
gro.DSBeerF at dv
%
If it's green or wiggles, it's biology.
If it stinks, it's chemistry.
If it doesn't work, it's physics.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 155 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-rc/attachments/20070222/eec2f1ef/attachment.pgp


More information about the freebsd-rc mailing list