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
This commit is contained in:
Bjoern A. Zeeb 2022-08-11 14:32:06 +00:00
parent 281a6ff273
commit e196317370

View file

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