sysrc -- a sysctl(8)-like utility for managing /etc/rc.conf et. al.

Warren Block wblock at wonkity.com
Thu Oct 7 13:42:43 UTC 2010


On Thu, 7 Oct 2010, Douglas K. Rand wrote:

> I think that this script might also fill a void with using Puppet as a
> configuration tool. Currently Puppet, as its default behaviour, uses
> files in /etc/rc.conf.d to set variables. I've found this approach
> really lacking because you cannot do things like:
>
>  nfs_server_enable="YES"
>
> via a /etc/rc.conf.d file because multiple things (like lockd, mountd,
> nfsd, nfsserver, and statd) all need nfs_server_enable set, as one
> example. This script would provide an easy method for puppet to "edit"
> lines in /etc/rc.conf.

Consider also the docs that tell the user to
   echo 'something_enable="YES"' >> /etc/rc.conf

which can produce duplicate and possibly differing entries.  Or 
non-working entries if there was no ending \n present, or even a broken 
rc.conf that breaks startup.


More information about the freebsd-hackers mailing list