Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 20 Mar 2017 06:42:38 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-bugs@FreeBSD.org
Subject:   [Bug 217939] syslogd: -b ::1 and -b [::1]:syslog broken after ^/head@r309933
Message-ID:  <bug-217939-8@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D217939

            Bug ID: 217939
           Summary: syslogd: -b ::1 and -b [::1]:syslog broken after
                    ^/head@r309933
           Product: Base System
           Version: CURRENT
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Some People
          Priority: ---
         Component: bin
          Assignee: freebsd-bugs@FreeBSD.org
          Reporter: ngie@FreeBSD.org

syslogd no longer accepts `-b ::1` and `-b [::1]:syslog` after the refactor=
ing
done in r309933. Example:

Legacy format (`-b ::1`):

$ sudo env rc_debug=3D1 /etc/rc.d/syslogd restart
/etc/rc.d/syslogd: DEBUG: Sourcing /etc/defaults/rc.conf
/etc/rc.d/syslogd: DEBUG: pid file (/var/run/syslog.pid): not readable.
/etc/rc.d/syslogd: DEBUG: checkyesno: syslogd_enable is set to YES.
/etc/rc.d/syslogd: DEBUG: pid file (/var/run/syslog.pid): not readable.
/etc/rc.d/syslogd: DEBUG: checkyesno: syslogd_enable is set to YES.
syslogd not running? (check /var/run/syslog.pid).
/etc/rc.d/syslogd: DEBUG: pid file (/var/run/syslog.pid): not readable.
/etc/rc.d/syslogd: DEBUG: checkyesno: syslogd_enable is set to YES.
/etc/rc.d/syslogd: DEBUG: run_rc_command: start_precmd: syslogd_precmd
Starting syslogd.
/etc/rc.d/syslogd: DEBUG: run_rc_command: doit:  limits -C daemon
/usr/sbin/syslogd -b ::1 -b :syslog -b [::1]:syslog -b 127.0.0.1:syslog -d
syslogd: getaddrinfo failed for :1: servname not supported for ai_socktype:=
 Bad
file descriptor
logmsg: pri 53, flags 4, from , msg syslogd: getaddrinfo failed for :1:
servname not supported for ai_socktype: Bad file descriptor
Logging to UNUSED
/etc/rc.d/syslogd: WARNING: failed to start syslogd

Square bracket format with service identifier (`-b [::1]:syslog`)

$ sudo env rc_debug=3D1 /etc/rc.d/syslogd restart
/etc/rc.d/syslogd: DEBUG: Sourcing /etc/defaults/rc.conf
/etc/rc.d/syslogd: DEBUG: pid file (/var/run/syslog.pid): not readable.
/etc/rc.d/syslogd: DEBUG: checkyesno: syslogd_enable is set to YES.
/etc/rc.d/syslogd: DEBUG: pid file (/var/run/syslog.pid): not readable.
/etc/rc.d/syslogd: DEBUG: checkyesno: syslogd_enable is set to YES.
syslogd not running? (check /var/run/syslog.pid).
/etc/rc.d/syslogd: DEBUG: pid file (/var/run/syslog.pid): not readable.
/etc/rc.d/syslogd: DEBUG: checkyesno: syslogd_enable is set to YES.
/etc/rc.d/syslogd: DEBUG: run_rc_command: start_precmd: syslogd_precmd
Starting syslogd.
/etc/rc.d/syslogd: DEBUG: run_rc_command: doit:  limits -C daemon
/usr/sbin/syslogd -b :syslog -b [::1]:syslog -b 127.0.0.1:syslog -b localho=
st
-b localhost:syslog -d
new socket fd is 6
shutdown
sending on socket
new socket fd is 7
shutdown
sending on socket
Trying peer: [
syslogd: getaddrinfo failed for [:1]:syslog: servname not supported for
ai_socktype: Bad file descriptor
logmsg: pri 53, flags 4, from , msg syslogd: getaddrinfo failed for
[:1]:syslog: servname not supported for ai_socktype: Bad file descriptor
Logging to UNUSED
/etc/rc.d/syslogd: WARNING: failed to start syslog

Square bracket format without service identifier (`-b [::1]`)

$ sudo env rc_debug=3D1 /etc/rc.d/syslogd restart
/etc/rc.d/syslogd: DEBUG: Sourcing /etc/defaults/rc.conf
/etc/rc.d/syslogd: DEBUG: pid file (/var/run/syslog.pid): not readable.
/etc/rc.d/syslogd: DEBUG: checkyesno: syslogd_enable is set to YES.
/etc/rc.d/syslogd: DEBUG: pid file (/var/run/syslog.pid): not readable.
/etc/rc.d/syslogd: DEBUG: checkyesno: syslogd_enable is set to YES.
syslogd not running? (check /var/run/syslog.pid).
/etc/rc.d/syslogd: DEBUG: pid file (/var/run/syslog.pid): not readable.
/etc/rc.d/syslogd: DEBUG: checkyesno: syslogd_enable is set to YES.
/etc/rc.d/syslogd: DEBUG: run_rc_command: start_precmd: syslogd_precmd
Starting syslogd.
/etc/rc.d/syslogd: DEBUG: run_rc_command: doit:  limits -C daemon
/usr/sbin/syslogd -b [::1] -b :syslog -b 127.0.0.1:syslog -d
Trying peer: [
syslogd: getaddrinfo failed for [:1]: servname not supported for ai_socktyp=
e:
Bad file descriptor
logmsg: pri 53, flags 4, from , msg syslogd: getaddrinfo failed for [:1]:
servname not supported for ai_socktype: Bad file descriptor
Logging to UNUSED
/etc/rc.d/syslogd: WARNING: failed to start syslogd

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-217939-8>