cron mail problem solved

Frank Shute frank at shute.org.uk
Mon Jun 15 13:34:13 UTC 2009


On Mon, Jun 15, 2009 at 11:11:14AM +0200, DA Forsyth wrote:
>
> Why do I become so clever AFTER asking for help?
> 
> Anyhow, I have solved the cron not sending email problem.
> The cron log file contains lines like this
> NSSWITCH(nss_method_lookup): nis, group_compat, setgrent, not found
> which when searched for produces the page at
> http://www.ivorde.ro/FreeBSD_Cron__NSSWITCH_nss_method_lookup_errors-
> 44.html
> 
> So I have edited my /etc/nsswitch.conf to have 
> group: files
> password: files
> (instead of 'compat')
> 
> and now it works again.
> 
> I guess I must have installed that file in the  upgrade during my 
> glazed mergemaster phase of 'esc i enter' to install all those files 
> whose only difference is the $Id$ tag (why do they bother?)

You can get mergemaster to ignore those cvs tags. In
/etc/mergemaster.rc:

DIFF_FLAG='-Bub'
DIFF_OPTIONS='-I$FreeBSD:.*[$]'
IGNORE_FILES='/etc/motd /etc/mail/mailer.conf /etc/printcap'

The 2nd line above tells diff to ignore lines that match that RE.


Regards,

-- 

 Frank 


 Contact info: http://www.shute.org.uk/misc/contact.html 



More information about the freebsd-questions mailing list