From owner-freebsd-questions@FreeBSD.ORG Sat Aug 12 15:03:48 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B519316A4DF for ; Sat, 12 Aug 2006 15:03:48 +0000 (UTC) (envelope-from gerard@seibercom.net) Received: from wx-out-0506.google.com (wx-out-0506.google.com [66.249.82.228]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1DAF743D5A for ; Sat, 12 Aug 2006 15:03:46 +0000 (GMT) (envelope-from gerard@seibercom.net) Received: by wx-out-0506.google.com with SMTP id i27so83915wxd for ; Sat, 12 Aug 2006 08:03:46 -0700 (PDT) Received: by 10.70.100.1 with SMTP id x1mr6937139wxb; Sat, 12 Aug 2006 08:03:46 -0700 (PDT) Received: from scorpio.seibercom.net ( [67.189.184.224]) by mx.gmail.com with ESMTP id h38sm1054148wxd.2006.08.12.08.03.45; Sat, 12 Aug 2006 08:03:45 -0700 (PDT) Received: from [192.168.0.4] (boss.seibercom.net [192.168.0.4]) (Authenticated sender: gerard@seibercom.net) by scorpio.seibercom.net (Postfix) with ESMTP id BE00FB825 for ; Sat, 12 Aug 2006 11:03:44 -0400 (EDT) Date: Sat, 12 Aug 2006 11:03:54 -0400 From: Gerard Seibert To: freebsd-questions@freebsd.org Organization: Seibercom In-Reply-To: <44DB0DBF.7060607@infracaninophile.co.uk> References: <20060809171622.A471.GERARD@seibercom.net> <44DB0DBF.7060607@infracaninophile.co.uk> X-Face: "\j?x](l|]4p?-1Bf@!wN<&p=$.}^k-HgL}cJKbQZ3r#Ar]\%U(#6}'?<3s7%(%(gxJxxcR nSNPNr*/^~StawWU9KDJ-CT0k$f#@t2^K&BS_f|?ZV/.7Q Message-Id: <20060812105329.3184.GERARD@seibercom.net> MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8bit X-Mailer: Becky! ver. 2.25 [en] Subject: Re: Port Not Available X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: freebsd-questions@freebsd.org List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 12 Aug 2006 15:03:48 -0000 Matthew Seaman wrote: > Woah! Reinstalling the whole OS to fix a printer problem is way overkill. > > The /dev/null entry in /etc/printcap is just a place-holder. Normally > that entry would contain the device used to communicate to a locally > attached printer. However, because you're using samba, you've faked the > system into thinking you've got a local printer, while using a print > filter to divert the data via samba into the remote Windows printer. > It's a bit of a hack really. > > However what it does mean is that no data should actually end up being > passed to /dev/null. As the print system is complaining about not being > able to get an exclusive lock on that file, perhaps it would be worth > trying substituting some regular file that it could get a lock on. Try > this. > > # touch /var/log/lpd.out > # chmod 644 /var/log/lpd.out > # chown root:daemon /var/log/lpd.out > > Then edit /etc/printcap and substitute /var/log/lpd.out for /dev/null > and restart lpd. lpd.out should just stay an empty file, but it might > end up with a copy of anything you send to the printer in it, in which > case siccing newsyslog(1) onto the file to keep it a manageable size > would be a good idea. > > If this works, then reporting what happened to the port maintainer and > author of apsfilter would be indicated -- seems the behaviour of > /dev/null has changed in recent releases sufficient to put a spanner in > apsfilter's works. > > Cheers, > > Matthew I tried your suggestion but to no avail. While it did alleviate the one error message, the overall problem still exists. The following are the output from several attempts to print a simple document as well as some other probably useless info. ~/tmp # lp /etc/printcap lp: Error - scheduler not responding! ~/tmp # lp -d lp /etc/printcap lp: Connection refused ~/tmp # lpr /etc/printcap lpr: Error - scheduler not responding! ~/tmp # lpr -Plp /etc/printcap lpr: Connection refused It appears that lpd is running: root 516 0.0 0.3 1512 1060 ?? Is 8:20AM 0:00.04 /usr/sbin/lpd Checking on the lp status: ~/tmp # lpc status all lp: queuing is enabled printing is enabled no entries in spool area printer idle Finally, I gleamed these from sockstat: root lpd 516 3 dgram -> /var/run/logpriv root lpd 516 5 stream /var/run/printer root lpd 516 6 tcp6 *:515 *:* root lpd 516 7 tcp4 *:515 *:* This is becoming more than a slight annoyance. -- Gerard Seibert gerard@seibercom.net