https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=217939
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: [email protected]
Reporter: [email protected]
syslogd no longer accepts `-b ::1` and `-b [::1]:syslog` after the refactoring
done in r309933. Example:
Legacy format (`-b ::1`):
$ sudo env rc_debug=1 /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=1 /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 localhost
-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=1 /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_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
--
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
[email protected] mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-bugs
To unsubscribe, send any mail to "[email protected]"