[cups.general] How to debug cups-lpd?

Helge Blischke h.blischke at srz.de
Mon Feb 16 02:25:26 PST 2009


Daniel Spannbauer wrote:
> 
> 
> Daniel Spannbauer schrieb:
>>
>> Michael R Sweet schrieb:
>>> Daniel Spannbauer wrote:
>>>> Michael Sweet schrieb:
>>>>> Daniel Spannbauer wrote:
>>>>>> Hello,
>>>>>>
>>>>>> we have in our System some old machines who are printing over a 
>>>>>> self-compiled old lpd.
>>>>>> Now, we want migrate to cups, but the cups-lpd is not printing 
>>>>>> jobs from our old System.
>>>>>> According to a tcpdump there is siome input over Port 515, but 
>>>>>> there is no output in error_log.
>>>>>>
>>>>>> Can I start cups-lpd in a way that I'm able to see what cups-lpd 
>>>>>> is doing or whats wrong?
>>>>> cups-lpd logs via syslog, so its messages should show up in the normal
>>>>> syslog file(s)...
>>>>>
>>>> Hello Michael,
>>>>
>>>> thats right, but the log-level is very poor. Ca I increase it?
>>> Depending on the OS, you may be able to configure syslogd to log
>>> debugging messages produced by cups-lpd (although it does not log as
>>> verbosely as, say, cupsd in debug mode...)
>>
>> Hmmm, I'm not very firm in syslog-ng so I don't now what to change in 
>> syslog-ng.conf.
> 
> Can I do a strace about cups-lpd when it is starting of xinetd? And, 
> wehen yes: how?
> 
> Regards
> 
> Daniel
> 
> 
> 
> 
>>
>> Regards
>>
>> Daniel
>>
>>
>>
>>
>>
> 

Write a wrapper script which launches the cups-lpd under strace
and configure xinetd to launch this wrapper script instead.

Helge


-- 
Helge Blischke
Softwareentwicklung



H.Blischke at acm.org




More information about the cups mailing list