LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 07-11-2001, 12:07 PM   #1
ltrain
LQ Newbie
 
Registered: May 2001
Posts: 16

Rep: Reputation: 0
lpd problem


Hello all,

Out of curiosity, has anyone else run into a problem like mine.....

...RH print server - when the lpd daemon starts up it spools 2 daemons - which halts freezes all printing. The workaround is to kill one of the daemons. Also, for the past week or so I have had to stop and restart the daemon almost every time I go to print.

Sounds like to me the daemon may be corrupt. Any ideas on how I can fix this problem?
 
Old 09-07-2001, 01:10 PM   #2
SSUHALE
LQ Newbie
 
Registered: Sep 2001
Location: CALIFORNIA
Posts: 2

Rep: Reputation: 0
Please Help - Lpd Problem

I am relatively a new Linux user and I am having a problem using lpd which is driving me crazy. The following describes my system and the exact problem I am having:

OS: Red Hat Linux 6.0
Kernel: 2.2.5-15 on an i686
Printers used: Okidata MicroLine 320

I have 4 network (connected using Cisco router) printers running and I print to these printers using the lpr command, for example I type "lpr -Pqueuename Filename". For the most part it works fine, but frequently (atleast once a day) for no apparent reason one printer or the other stops printing. And when I do a
#ps -aux |grep lpd command I see two lpd daemon's running

root 412 0.0 0.6 1120 404 ? S 11:30 0:00 lpd
root 417 0.0 1.1 1432 756 ? S 11:30 0:00 lpd
root 500 0.0 1522 392 pts/1 R 11:45 0:00 grep lpd




and when I goto the particular printer queue directory I see the c* file and the d* file. The only way I can make the printer work again is if I manually remove these cfA005A9zI525 and dfA005A9zI525 files and then restart the lpd daemon by typing:
/etc/rc.d/init.d/lpd restart
and then type
# lpc restart printerqueuename

and when I do all these steps, the printer starts working again.

A sample of my /etc/printcap file is as follows:

PRINTTOOL3## REMOTE epson 60x60 letter {} Epson9 Default {}
sppw58ii:\
:sd=/var/spool/lpd/sppw58i1:\
:mx#0:\
:sh:\
:rm=SPPWR58.SCPPOOL.COM:\
:rp=sppw58i1:\
:if=/var/spool/lpd/sppw58i1/filter:
#PRINTTOOL3## REMOTE epson 60x60 letter {} Epson9 Default {}
sppw58o:\
:sd=/var/spool/lpd/sppw58o:\
:mx#0:\
:sh:\
:rm=SPPWR58.SCPPOOL.COM:\
:rp=sppw58o:\
:if=/var/spool/lpd/sppw58o/filter:
#PRINTTOOL3## REMOTE epson 60x60 letter {} Epson9 Default {}
sppw58r:\
:sd=/var/spool/lpd/sppw58r:\
:mx#0:\
:sh:\
:rm=SPPWR58.SCPPOOL.COM:\
:rp=sppw58r:\
:if=/var/spool/lpd/sppw58r/filter:
#PRINTTOOL3## REMOTE epson 60x60 letter {} Epson9 Default {}
sppw58c:\
:sd=/var/spool/lpd/sppw58c:\
:mx#0:\
:sh:\
:rm=SPPWR58.SCPPOOL.COM:\
:rp=sppw58c:\
:if=/var/spool/lpd/sppw58c/filter:

I had set /etc/printcap file using the printtool feature. The printers we are using are the Okidata Microline 320 (9 pin printer). In the printtool application I could'nt find any Okidata hence I used the epson 9 pin filter.


The other problem I have is that whenever I print a big file, the printer prints few pages and then stops printing and I see that another child lpd daemon is created and then I have to do the whole above process again to make the printer work again.


Can anyone make me understand why all of sudden for no apparent reason one or the other printer stops working which seem to create child lpd daemon?

I have spent several hours online trying to understand the whole lpd process. The only conclusion I have come to so far is that the lpd is not a stable utility.

I would appreciate any help I could get.

Thanks,

S.Suhale
 
Old 09-20-2001, 02:58 PM   #3
Russtopia
LQ Newbie
 
Registered: Sep 2001
Location: Calgary, Alberta
Posts: 1

Rep: Reputation: 0
Re: lpd problem

I am having the same exact behaviour -- lpd runs fine much of the time, but
will mysteriously freeze a queue for no obvious reason. I have to bring the
queues down using lpc (lpc down all), go into /var/spool/lpd and remove all
the dF* and cF* files, restart the queues (or sometimes even restart lpr
completely). Then the print queues will resume working.
 
Old 11-11-2004, 12:19 PM   #4
hardwired2001
LQ Newbie
 
Registered: Mar 2004
Posts: 4

Rep: Reputation: 0
Doing a "ps -ax|grep lpd" and "kill -9 XXXX" on the lpd (Worker - Remote) PID (doing an lpc status all will also show you the current PID for the print job) will some times get the q back to work with out having to remove all your jobs.

I am having the same problim with a mass amount of jobs halting LPD
Please E-mail Barry.brosnihan@tesco.net if you know the answer!!!!
Thanks
Barry
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
lpd problem J_Szucs *BSD 1 06-13-2005 08:10 PM
lpd problem moger Linux - General 5 02-17-2003 02:19 PM
LPRng - LPD problem robinhood1995 Linux - General 0 04-21-2002 12:57 PM
lpd problem - please help SSUHALE Linux - General 0 09-07-2001 01:18 PM
Printing problem: with lpd? bazell Linux - General 0 04-10-2001 10:20 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 06:54 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration