Date: Wed, 25 Mar 2026 14:43:19 +0000 From: Torsten Zuehlsdorff <tz@FreeBSD.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org Subject: git: c864cbc10937 - main - dns/unbound: use daemon(8) for crash recovery Message-ID: <69c3f487.1c7ed.28b3656b@gitrepo.freebsd.org>
index | next in thread | raw e-mail
The branch main has been updated by tz: URL: https://cgit.FreeBSD.org/ports/commit/?id=c864cbc109377868d151df9d80bdb494dbfc1891 commit c864cbc109377868d151df9d80bdb494dbfc1891 Author: Torsten Zuehlsdorff <tz@FreeBSD.org> AuthorDate: 2026-03-23 20:10:24 +0000 Commit: Torsten Zuehlsdorff <tz@FreeBSD.org> CommitDate: 2026-03-25 14:42:58 +0000 dns/unbound: use daemon(8) for crash recovery Use daemon(8) with -r flag to automatically restart unbound after crashes. PR: 245114 --- dns/unbound/files/unbound.in | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/dns/unbound/files/unbound.in b/dns/unbound/files/unbound.in index f6fc43c80618..94529a59035d 100644 --- a/dns/unbound/files/unbound.in +++ b/dns/unbound/files/unbound.in @@ -77,9 +77,10 @@ load_rc_config "${name}" # Set PID file pidfile=$(%%PREFIX%%/sbin/unbound-checkconf -o pidfile ${unbound_config}) +procname="%%PREFIX%%/sbin/unbound" required_files=${unbound_config} -command="%%PREFIX%%/sbin/${name}" -command_args="-c ${unbound_config}" +command="/usr/sbin/daemon" +command_args="-S -r -p ${pidfile} -t ${name} -T ${name} -- ${procname} -c ${unbound_config}" unbound_anchorflags=${unbound_anchorflags:-""} extra_commands="reload" start_precmd="start_precmd"home | help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?69c3f487.1c7ed.28b3656b>
