smbd error - printing/print_cups.c:cups_cache_reload

Unable to connect to CUPS server localhost - Connection refused.

 

If the following error is filling up your /var/log/messages log file and you are not using printing then here is how to fix.

Sep 14 13:04:41 server1 smbd[21104]: [2009/09/14 13:04:41, 0] printing/print_cups.c:cups_cache_reload(85)
Sep 14 13:04:41 server1 smbd[21104]:   Unable to connect to CUPS server localhost - Connection refused

Add the following to the [global] section of the smb.conf file.

load printers = no
printing = bsd
printcap name = /dev/null
disable spoolss = yes

Then type the following to restart the samba daemons so that samba re-reads its configuration file.

killall -1 smbd