https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=238753

            Bug ID: 238753
           Summary: /etc/rc.d/local_unbound fails to honor configuration
                    directory setting pre-start
           Product: Base System
           Version: 12.0-STABLE
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Some People
          Priority: ---
         Component: conf
          Assignee: b...@freebsd.org
          Reporter: k...@denninger.net

Created attachment 205269
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=205269&action=edit
Address missing "-c" flag on the control command

/etc/rc.d/local_unbound starts the local "unbound" nameserver.

The script assumes the working directory is in /var/unbound, which is valid for
most users.  However, in an embedded environment /var is frequently on a
ramdisk and not saved (that is, it's volatile), which means you need to move
this directory for those environments since otherwise you will be regenerating
the configuration on each boot -- and that is probably not desirable.

The base RC script is intended to honor local_unbound_workdir in /etc/rc.conf,
but the "local_unbound_poststart()" function makes a call to the "-control"
software without specifying the config directory explicitly with "-c".  If the
working directory is not in the default location this results in that command
failing; this is not fatal since the test gives up after five tries, but it
should honor the config directive and thus know when the startup has completed
successfully.

The attached patch adds the "-c" flag to the control command and resolves the
issue.

-- 
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
freebsd-bugs@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-bugs
To unsubscribe, send any mail to "freebsd-bugs-unsubscr...@freebsd.org"

Reply via email to