[Bug 262995] dns/unbound: Not recorded in syslogd
- In reply to: bugzilla-noreply_a_freebsd.org: "[Bug 262995] dns/unbound: Not recorded in syslogd"
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 11 Apr 2022 12:35:52 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=262995
--- Comment #5 from vfx9as@gmail.com ---
The following script could handle it
-- /usr/local/etc/rc.d/unbound_syslog --
#!/bin/sh
# PROVIDE: unbound_syslog
# REQUIRE: unbound syslogd
. /etc/rc.subr
name="unbound_syslog"
desc="unbound to use syslog"
start_cmd="${name}_start"
stop_cmd=":"
load_rc_config "unbound"
: ${unbound_enable:="NO"}
: ${unbound_config:=/usr/local/etc/unbound/unbound.conf}
checkconf="/usr/local/sbin/unbound-checkconf"
unbound_syslog_start()
{
if checkyesno unbound_enable; then
usesyslog=`${checkconf} -o use-syslog ${unbound_config}`
if checkyesno usesyslog; then
echo unbound restarts to use syslog
/usr/sbin/service unbound restart
fi
fi
}
run_rc_command "$1"
--
You are receiving this mail because:
You are the assignee for the bug.