/etc/crontab and mail

Thierry Lacoste th.lacoste at wanadoo.fr
Sat Jul 22 20:00:17 UTC 2006


Answering myself it may be related to
http://lists.freebsd.org/pipermail/freebsd-ports-bugs/2006-April/086659.html

I'm using openldap-server-2.3.24 and nss_ldap-1.250.

My /var/log/debug.log was full of:
Jul 22 20:34:04 castor sm-mta[58735]: NSSWITCH(nss_method_lookup): ldap, 
passwd, endpwent, not found
Jul 22 20:34:04 castor last message repeated 3 times
Jul 22 20:34:04 castor sm-msp-queue[58736]: NSSWITCH(nss_method_lookup): 
ldap, passwd, endpwent, not found
Jul 22 20:34:04 castor sm-msp-queue[58736]: NSSWITCH(nss_method_lookup): 
ldap, passwd, endpwent, not found
Jul 22 20:35:00 castor cron[58738]: NSSWITCH(nss_method_lookup): ldap, 
group, setgrent, not found
Jul 22 20:35:00 castor cron[58738]: NSSWITCH(nss_method_lookup): ldap, 
group, getgrent_r, not found
Jul 22 20:35:00 castor cron[58738]: NSSWITCH(nss_method_lookup): ldap, 
group, endgrent, not found
Jul 22 20:35:00 castor cron[58738]: NSSWITCH(nss_method_lookup): ldap, 
passwd, endpwent, not found

I rebooted the machine and now everything seems to work fine.
When I put "14 8 * * * root echo test" in /etc/crontab
a mail is now sent as expected.

Any idea why a reboot seems to have solved the problem?

Thierry.




More information about the freebsd-questions mailing list