If you want a persistent DB for, eg, hosts, then nscd will create /var/db/nscd/<db-name> at startup but expect /var/db/nscd to exist. Attached is a sample patch which grep && mkdir. Should be noted that the case where both "server-user" and "persistent" are setup has not been tested; in such a case install -o <user> may be needed. Reproducible: Always
Created attachment 284215 [details] sample init script patch
thanks ... added to the patchset http://sources.gentoo.org/gentoo/src/patchsets/glibc/extra/etc/nscd?r1=1.4&r2=1.5