Date: Thu, 24 Feb 2022 10:55:35 +0000 From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 262170] Change in /usr/sbin/service causes /etc/rc.d/devmatch to hang on boot on LDAP clients Message-ID: <bug-262170-227@https.bugs.freebsd.org/bugzilla/>
next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D262170 Bug ID: 262170 Summary: Change in /usr/sbin/service causes /etc/rc.d/devmatch to hang on boot on LDAP clients Product: Base System Version: 12.3-STABLE Hardware: Any OS: Any Status: New Severity: Affects Many People Priority: --- Component: bin Assignee: bugs@FreeBSD.org Reporter: kheuer@gwdg.de Compared to 12.2-STABLE, line 168 of /usr/sbin/service has changed to: exec env -i -L 0/daemon HOME=3D/ PATH=3D/sbin:/bin:/usr/sbin:/usr/bin "$dir/$script" "$@" In 12.2-STABLE, line 168 reads: exec env -i HOME=3D/ PATH=3D/sbin:/bin:/usr/sbin:/usr/bin $dir/$script "$@" That means that /etc/login.conf.db shall additionally be scanned for environment variables in 12.3-STABLE. As a consequence, when a FreeBSD host is configured as an LDAP client, /etc/rc.d/devmatch will hang on boot since the system tries to connect to an LDAP server before network connections are available. Status codes and acti= ons in /etc/nsswitch.conf don't help. /etc/nsswitch.conf looks like: group: files ldap passwd: files ldap ... To be clear, any command executed by "exec env -i -L 0/daemon ..." will han= g on boot. --=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-262170-227>