git: e19631737085 - main - local_unbound: rc: allow to overwrite pid file path

From: Bjoern A. Zeeb <bz_at_FreeBSD.org>
Date: Thu, 01 Sep 2022 23:54:04 UTC
The branch main has been updated by bz:

URL: https://cgit.FreeBSD.org/src/commit/?id=e1963173708504ecd2ee5c441a9428a046af54f4

commit e1963173708504ecd2ee5c441a9428a046af54f4
Author:     Bjoern A. Zeeb <bz@FreeBSD.org>
AuthorDate: 2022-08-11 14:32:06 +0000
Commit:     Bjoern A. Zeeb <bz@FreeBSD.org>
CommitDate: 2022-09-01 23:51:42 +0000

    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
    MFC after:      3 days
    Differential Revision: https://reviews.freebsd.org/D36141
---
 libexec/rc/rc.d/local_unbound | 2 ++
 1 file changed, 2 insertions(+)

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()
 {