Author: des
Date: Tue Dec  1 13:20:21 2015
New Revision: 291582
URL: https://svnweb.freebsd.org/changeset/base/291582

Log:
  Load our configuration before setting defaults, so local_unbound_workdir
  actually has an effect.
  
  PR:           204931
  Submitted by: Eugene Grosbein <[email protected]>
  MFC after:    1 week

Modified:
  head/etc/rc.d/local_unbound

Modified: head/etc/rc.d/local_unbound
==============================================================================
--- head/etc/rc.d/local_unbound Tue Dec  1 12:37:04 2015        (r291581)
+++ head/etc/rc.d/local_unbound Tue Dec  1 13:20:21 2015        (r291582)
@@ -24,6 +24,8 @@ configtest_cmd="local_unbound_configtest
 setup_cmd="local_unbound_setup"
 pidfile="/var/run/${name}.pid"
 
+load_rc_config $name
+
 : ${local_unbound_workdir:=/var/unbound}
 : ${local_unbound_config:=${local_unbound_workdir}/unbound.conf}
 : ${local_unbound_flags:="-c ${local_unbound_config}"}
@@ -32,8 +34,6 @@ pidfile="/var/run/${name}.pid"
 : ${local_unbound_anchor:=${local_unbound_workdir}/root.key}
 : ${local_unbound_forwarders:=}
 
-load_rc_config $name
-
 do_as_unbound()
 {
        echo "$@" | su -m unbound
_______________________________________________
[email protected] mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "[email protected]"

Reply via email to