svn commit: r230007 - in head: etc etc/rc.d share/man/man8

John Baldwin jhb at freebsd.org
Thu Jan 12 13:09:23 UTC 2012


On Thursday, January 12, 2012 1:48:11 am Eygene Ryabinkin wrote:
> Author: rea (ports committer)
> Date: Thu Jan 12 06:48:11 2012
> New Revision: 230007
> URL: http://svn.freebsd.org/changeset/base/230007
> 
> Log:
>   rc.d: document 'quiet' prefix and fix dhclient/devd interaction
>   
>   Document the current semantics of the 'quiet' command prefix
>   in the rc.subr(8).
>   
>   Fix dhclient rc.d script: it should not call err() for
>   non-DHCP-enabled interface when it is called from devd, because the
>   latter just blindly calls 'service dhclient quietstart' on each "link
>   up" event.
>   
>   Since the 'quietstart' will silence the message "Cannot 'start' <foo>.
>   Set <foo>_enable to YES in /etc/rc.conf or use 'onestart' instead of
>   'start'." and running dhclient on the non-DHCP-enabled interface is
>   the same thing as running the service <foo> without <foo>_enable set,
>   such modification is in sync with the current semantics of the 'quiet'
>   prefix.

Alternatively, devd could have invoked a wrapper script that only ran
/etc/rc.d/dhclient if dhcpif was true for the interface.  All other uses
of /etc/rc.d/dhclient in our system scripts are conditional on that check.

-- 
John Baldwin


More information about the svn-src-head mailing list