aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBjoern A. Zeeb <bz@FreeBSD.org>2022-08-11 14:32:06 +0000
committerBjoern A. Zeeb <bz@FreeBSD.org>2022-09-21 11:38:56 +0000
commitfe67d32550270e6c74612de22d74c126b381bcdb (patch)
tree388250a4758a384647faee0421ea8d5e2a53ba91
parentb6e6b7bc5d6302a8b69c47590e647be6bd629fd7 (diff)
local_unbound: rc: allow to overwrite pid file path
Certain configurations need to use a different path for pidfile. Allow rc.conf to overwrite it. Reviewed by: cy, 0mp Differential Revision: https://reviews.freebsd.org/D36141 (cherry picked from commit e1963173708504ecd2ee5c441a9428a046af54f4)
-rwxr-xr-xlibexec/rc/rc.d/local_unbound2
1 files changed, 2 insertions, 0 deletions
diff --git a/libexec/rc/rc.d/local_unbound b/libexec/rc/rc.d/local_unbound
index 19cb9a6c5c01..9c32b8263dc8 100755
--- a/libexec/rc/rc.d/local_unbound
+++ b/libexec/rc/rc.d/local_unbound
@@ -34,6 +34,8 @@ load_rc_config $name
: ${local_unbound_anchor:=${local_unbound_workdir}/root.key}
: ${local_unbound_forwarders:=}
: ${local_unbound_tls:=}
+: ${local_unbound_pidfile:=${pidfile}}
+pidfile=${local_unbound_pidfile}
do_as_unbound()
{