On Fri, 2003-12-26 at 16:07, James Finnall wrote:
Have you tried using the CUPS Web interface, http://localhost:631 I use it extensively with 8.1 and it will terminate the print jobs, including the backend. Then I either power off the printer or wait for the buffer to finish and then reset the printer.
But, I agree that the CLI should work properly as well. May I suggest you verify that the lp tools are the programs supplied with CUPS. I suggest it because they have their own modified version to support CUPS. If you have installed, say for instance lprng package, after CUPS, the lprng files would overwrite the CUPS versions.
James
On Thursday 25 December 2003 21:39, Carlos E. R. wrote:
Hi,
I can not stop print jobs.
I'm using SuSE 8.2 and cups:
cer@nimrodel:~> lpq -a Rank Owner Job File(s) Total Size active cer 332 (stdin) 26065920 bytes cer@nimrodel:~> lprm 332 cer@nimrodel:~> lpq -a no entries cer@nimrodel:~>
So there are no print jobs, but the printer goes on printing. I stop cups:
back in SuSe 7.x, the print command file was in /var/spool/lpd/y2prn_lp... (or whatever the printer was called). If the printer jammed, or was powered down while printing, then deleting the print file was the only way to stop the page after page with garbage lines. It never seemed right, but it worked for me. In 8.2 that print file appears to be /var/spoool/cups/d00225-001 when I just printed your email. /var/spool/cups/c00225 seems to be the record-keeper for that job. Does print cancellation remove your /var/spool/cups/xxxxx printfile?
nimrodel:/var/spool/cups # rccups stop Shutting down cupsd done nimrodel:/var/spool/cups # rccups status Checking for cupsd: unused
But the printer continues printing. Why!?
I see a big file in '/var/spool/cups/tmp' dated now - I forgot to compare its size with the deleted job. I delete it... and printing continues. There is nothing under '/var/spool/lpd'
ps afxl|less shows a job:
F UID PID PPID PRI NI VSZ RSS WCHAN STAT TTY TIME COMMAND 0 0 9178 1 15 0 2800 652 schedu S ? 0:03 parallel:/dev/lp0 332 cer (stdin)
I guess that the culprit must be "/usr/lib/cups/backend/parallel". Why wasn't it stopped when I stopped cups? Perhaps 'lprm' must be used as root?
Finally I stop the printer with "kill -9 9178" (the -9 seems to be needed). Then I can restart cups. Peace!
Is this a bug? SuSE 8.1 was also unable to stop print jobs (I asked here about it). Certainly stopping a print job should really stop it. To whom can this be reported?