[cups.general] How to debug cups-lpd?
Daniel Spannbauer
ds at marco.de
Mon Feb 16 02:37:04 PST 2009
Helge Blischke schrieb:
> 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.
>
I tried this, but xinetd shows a exec-format-error.
I started a strace -FF on xinetd. This seems to work.
I attached 2 2 Files, containing the strace-output.
cups-falsch shows the Output from a printjob of our system,
cuprs-richtig from a printjob of the standard-lpd of a old SuSE 8.0-System.
Regards
Daniel
> Helge
>
>
--
Daniel Spannbauer Software Entwicklung
marco Systemanalyse und Entwicklung GmbH Tel +49 8333 9233-27 Fax -11
Rechbergstr. 4 - 6, D 87727 Babenhausen Mobil +49 171 4033220
http://www.marco.de/ Email ds at marco.de
Geschäftsführer Martin Reuter HRB 171775 Amtsgericht München
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: cups-falsch
URL: <https://lists.cups.org/pipermail/cups/attachments/20090216/fd673859/attachment-0002.ksh>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: cups-richtig
URL: <https://lists.cups.org/pipermail/cups/attachments/20090216/fd673859/attachment-0003.ksh>
More information about the cups
mailing list