Summary: /etc/init.d/nscd fails (without indication) because of missing config file. What's wrong: nscd is part of glibc and cannot run without a /etc/nscd.conf file. The glibc ebuild doesn't install glibc's default nscd.conf file, thus running '/etc/init.d/nscd start' will start the nscd daemon but the daemon will exit instantaneous, although the /etc/init.d/nscd script doesn't show any error. Fix: I think the default config file should be installed to /etc/nscd.conf. If not it should at least be found in /usr/share/doc/${P} (but than the init.d script should have a check for the config file). The default nscd.conf can be found under ./nscd/nscd.conf in glibc's source dir.
Check that you did not delete it by accident. ---------------------------------------------------------- workshop glibc # grep nscd *.ebuild glibc-2.2.5-r8.ebuild: # Install nscd config file glibc-2.2.5-r8.ebuild: doins ${S}/nscd/nscd.conf glibc-2.3.1-r4.ebuild: # Install nscd config file glibc-2.3.1-r4.ebuild: doins ${S}/nscd/nscd.conf glibc-2.3.2-r1.ebuild: # Install nscd config file glibc-2.3.2-r1.ebuild: doins ${FILESDIR}/nscd.conf glibc-2.3.2-r2.ebuild: # Install nscd config file glibc-2.3.2-r2.ebuild: doins ${FILESDIR}/nscd.conf workshop glibc # epm -qf /etc/nscd.conf glibc-2.3.2-r2 workshop glibc #
Somehow nscd.conf did not get installed when I installed glibc-2.3.2-r1 last time: # grep nscd /var/db/pkg/sys-libs/glibc-2.3.2-r1/CONTENTS obj /usr/sbin/nscd ba21757a1861da3d8fa56658a947c487 1052573299 obj /usr/sbin/nscd_nischeck 8e72fa416e36db5e8d0a81a75c28f11a 1052573299 But it's there after reinstalling glibc: # grep nscd /var/db/pkg/sys-libs/glibc-2.3.2-r1/CONTENTS obj /etc/nscd.conf 2013443f5192d4b999953ba4248d288c 1058879722 obj /usr/sbin/nscd 15c9f7293168a523da46079d2080eab2 1058879722 obj /usr/sbin/nscd_nischeck bb7433275ea4af3262f431f5add00581 1058879722 Sorry for this timewaster.