From owner-freebsd-bugs Sat Mar 30 14:50:11 2002 Delivered-To: freebsd-bugs@hub.freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 9B55C37B416 for ; Sat, 30 Mar 2002 14:50:01 -0800 (PST) Received: (from gnats@localhost) by freefall.freebsd.org (8.11.6/8.11.6) id g2UMo1W76837; Sat, 30 Mar 2002 14:50:01 -0800 (PST) (envelope-from gnats) Received: from altair.mukappabeta.net (altair.mukappabeta.net [194.145.150.157]) by hub.freebsd.org (Postfix) with ESMTP id 0551F37B419 for ; Sat, 30 Mar 2002 14:45:01 -0800 (PST) Received: by altair.mukappabeta.net (Postfix, from userid 1001) id 84E5E460; Sat, 30 Mar 2002 23:44:51 +0100 (CET) Message-Id: <20020330224451.84E5E460@altair.mukappabeta.net> Date: Sat, 30 Mar 2002 23:44:51 +0100 (CET) From: Matthias Buelow Reply-To: Matthias Buelow To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Subject: bin/36552: lpd doesn't delete spool files Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org >Number: 36552 >Category: bin >Synopsis: lpd doesn't delete spool files >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Sat Mar 30 14:50:01 PST 2002 >Closed-Date: >Last-Modified: >Originator: Matthias Buelow >Release: FreeBSD 4.5-20020326-STABLE i386 >Organization: >Environment: System: FreeBSD altair.mukappabeta.net 4.5-20020326-STABLE FreeBSD 4.5-20020326-STABLE #0: Sat Mar 30 03:08:40 CET 2002 root@:/usr2/src/sys/compile/ALTAIR i386 >Description: After successful printing a file on a remote printer, lpd doesn't remove the file in the spool dir, thus locking up the printing service and printing it again if the daemon is restarted. >How-To-Repeat: I've got the following printcap: ps|remote laser postscript printer:\ :sd=/var/spool/output/lpd:lf=/var/log/lpd-errs:\ :of=/usr/local/sbin/psfilt:\ :sh:rm=eps1:rp=wastebasket_p1: using a Lantronix EPS1 printer server. The /usr/local/sbin/psfilt script, used as output filter, contains the following line: gs -q -dSAFER -sDEVICE=ljet4 -sPAPERSIZE=a4 -sOutputFile=- - Printing a postscript file works but it leaves the spool file hanging around: # lpq -Pps altair.mukappabeta.net: sending to eps1 Rank Owner Job Files Total Size 1st mkb 2 test.ps 182732 bytes Posn Entry Source Node Service Port Status Source -- 192.168.0.1 WASTEBASKET_P1 Port_2 Active RLpr 2 17 192.168.0.1 WASTEBASKET_P1 N/A Queued RLpr # ls -la /var/spool/output/lpd total 192 drwxrwxr-x 2 root daemon 512 Mar 30 23:35 . drwxr-xr-x 3 root daemon 512 Mar 30 23:27 .. -rw-r----x 1 root daemon 4 Mar 30 23:34 .seq -rw-rw---- 1 daemon daemon 122 Mar 30 23:34 cfA002altair.mukappabeta.net -rw-rw---- 1 mkb daemon 182732 Mar 30 23:34 dfA002altair.mukappabeta.net -rw-rw-r-- 1 root daemon 0 Mar 30 23:34 errs.G9KhLPX -rw-rw-r-- 1 root daemon 35 Mar 30 23:35 lock -rw-rw-r-- 1 root daemon 16 Mar 30 23:34 status >Fix: No clue, except replacing the blasted BSD lpd, which is always causing trouble, with something that works, like LPRng. >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message