NetBSD-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
misc/52840: syslogd doesn't start when unbound is enabled
>Number: 52840
>Category: misc
>Synopsis: syslogd doesn't start when unbound is enabled
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: misc-bug-people
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Mon Dec 18 18:25:00 +0000 2017
>Originator: dieter roelants
>Release: NetBSD 8.99.3
>Organization:
>Environment:
System: NetBSD simult.auwegem.be 8.99.3 NetBSD 8.99.3 (SIMULT) #150: Mon Dec 18 18:03:16 CET 2017 dieter%simult.auwegem.be@localhost:/build/obj.amd64.current/sys/arch/amd64/compile/SIMULT amd64
Architecture: x86_64
Machine: amd64
>Description:
Putting unbound=YES in rc.conf makes it run (chrooted by
default), but makes syslogd not start on next boot. The
reason for that is that it thinks it should create a socket
for unbound in /var/chroot/unbound/var/run/, which does
not exist. It appears unbound opens /var/run/log before
chrooting, so the socket in its chroot and the directory
are not actually needed.
>How-To-Repeat:
echo unbound=YES >>/etc/rc.conf
/etc/rc.d/syslogd restart
>Fix:
The following is a possible fix.
--- /build/src/etc/rc.d/syslogd 2004-10-11 15:29:52.000000000 +0200
+++ /etc/rc.d/syslogd 2017-12-18 19:04:15.116517030 +0100
@@ -39,8 +39,9 @@
(
_l=${_lr##*/}
load_rc_config ${_l}
+ checkyesno $_l || continue
eval _ldir=\$${_l}_chrootdir
- if checkyesno $_l && [ -n "$_ldir" ]; then
+ if [ -n "$_ldir" ] && [ -d "$_ldir/var/run" ]; then
echo "${_ldir}/var/run/log" >> $_sockfile
fi
)
Home |
Main Index |
Thread Index |
Old Index