[Bug 262844] Not recorded in syslog unless local-unbound is restarted
Date: Mon, 11 Apr 2022 12:34:45 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=262844
--- Comment #7 from vfx9as@gmail.com ---
---
The following script could handle it
-- /etc/rc.d/local_unbound_syslog --
#!/bin/sh
# PROVIDE: local_unbound_syslog
# REQUIRE: local_unbound syslogd
. /etc/rc.subr
name="local_unbound_syslog"
desc="local_unbound to use syslog"
start_cmd="${name}_start"
stop_cmd=":"
load_rc_config "local_unbound"
: ${local_unbound_enable:="NO"}
: ${local_unbound_workdir:=/var/unbound}
: ${local_unbound_config:=${local_unbound_workdir}/unbound.conf}
checkconf="/usr/sbin/local-unbound-checkconf"
local_unbound_syslog_start()
{
if checkyesno local_unbound_enable; then
usesyslog=`${checkconf} -o use-syslog ${local_unbound_config}`
if checkyesno usesyslog; then
echo local_unbound restarts to use syslog
/usr/sbin/service local_unbound restart
fi
fi
}
run_rc_command "$1"
--
You are receiving this mail because:
You are the assignee for the bug.