Summary: | Error on custom local_unbound configuration | ||
---|---|---|---|
Product: | Base System | Reporter: | garrych <garrych> |
Component: | conf | Assignee: | Dag-Erling Smørgrav <des> |
Status: | Closed FIXED | ||
Severity: | Affects Some People | CC: | des, hrs |
Priority: | Normal | Keywords: | patch-ready |
Version: | 10.0-RELEASE | ||
Hardware: | Any | ||
OS: | Any | ||
Attachments: |
Description
garrych
2014-09-02 13:46:35 UTC
Created attachment 146680 [details]
move load_rc_config command
Created attachment 146844 [details]
A patch to add the default values into etc/defaults/rc.conf.
It is wrong that the default values are defined in the current script, not the location of load_rc_config(). Can you try the attached patch and let me know if it works or not?
(In reply to Hiroki Sato from comment #2) > Created attachment 146844 [details] > A patch to add the default values into etc/defaults/rc.conf. > > It is wrong that the default values are defined in the current script, not > the location of load_rc_config(). Can you try the attached patch and let me > know if it works or not? Thanks. Will try it out. But will it work: do_as_unbound ${unbound_program%/*}/unbound-anchor I don't see ${unbound_program%/* defined. Created attachment 147052 [details]
Revised patch to add the default values into etc/defaults/rc.conf.
Sorry, there were typos in the previous patch. Please try this one. Thank you.
A commit references this bug: Author: des Date: Mon Sep 8 09:33:43 UTC 2014 New revision: 271257 URL: http://svnweb.freebsd.org/changeset/base/271257 Log: Use the correct idiom for default values, and ensure that the script works correctly if the user overrides them. PR: 193255 Submitted by: hrs@ MFC after: 3 days Changes: head/etc/defaults/rc.conf head/etc/rc.d/local_unbound My apologies. Garret pointed out a typo in my patch to defaults/rc.conf: +local_unbound_forwardconf="${local_unbound_workdir}/forward.conf}" (extra "}") local_unbound_flags="-c${local_unbound_config}" should definitely be evaluated later in a code. If I setup my custom config file in /etc/rc.conf for local_unbound it will not pass to through local_unbound_flags to the daemon. Created attachment 147061 [details]
/etc/rc.d/local_unbound patch
Evaluate local_unbound_flags later in the startup script.
Close PRs that have a corresponding commit to resolve the issue. |