cupsd and smb - problems getting it to work as service

Walter J. Mack wmack at cox.net
Fri Nov 10 17:04:03 PST 2006


Could you please help me with this issue?

cupsd does not print to an smb printer when the service is started through the init.d script.
However, it does print when starting cupsd -f directly from the command line.

Below are some details.

System information:
Fedora core v6. Installed about a week ago. No major modifications done after install

cups set up to print remotely on a WinXP box
smbclient -L shows printer

Jobs aren't printing, but show up in the print queue

After quite a bit of tinkering, I found out one way how to start cupsd so that it doesn't print, and another way that it prints.

Here are the failing and passing scenarios:
----------------------------------------------------
Startup #1
cd /etc/init.d ; ./cupsd start (response: start ok)
send file to printer
nothing prints

/var/log/cups/error_log has the following entry
D [10/Nov/2006:17:45:37 -0700] cupsdProcessIPPRequest: 11 status_code=0 (successful-ok)
E [10/Nov/2006:17:45:37 -0700] [Job 53] Can't load /etc/samba/smb.conf - run testparm to debug it
E [10/Nov/2006:17:45:37 -0700] PID 4305 (/usr/lib/cups/backend/smb) stopped with status 1!

./cupsd stop (response: stop ok)

----------------------------------------------------
Startup #2:
/usr/sbin/cupsd -f&
send file to printer
prints

error_log has the following entry:
D [10/Nov/2006:17:47:27 -0700] PID 4355 (/usr/lib/cups/backend/smb) exited with no errors.


----------------------------------------------------

I'm baffled why in the case of init.d/cupsd/start the smb spooler is being started, but is unable to load smb.conf,
when it has no such problem when cupsd is started from a console!

Can you help me??

Thanks in advance.
Walter Mack





More information about the cups mailing list