From owner-freebsd-questions Wed Jul 24 15:34:26 2002 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 6703437B400 for ; Wed, 24 Jul 2002 15:34:22 -0700 (PDT) Received: from web20703.mail.yahoo.com (web20703.mail.yahoo.com [216.136.226.176]) by mx1.FreeBSD.org (Postfix) with SMTP id 316DA43E42 for ; Wed, 24 Jul 2002 15:34:22 -0700 (PDT) (envelope-from edlyu@yahoo.com) Message-ID: <20020724223422.55541.qmail@web20703.mail.yahoo.com> Received: from [64.124.70.190] by web20703.mail.yahoo.com via HTTP; Wed, 24 Jul 2002 15:34:22 PDT Date: Wed, 24 Jul 2002 15:34:22 -0700 (PDT) From: Ed Yu Subject: Re: /var/run/printer? To: Garance A Drosihn , freebsd-questions@FreeBSD.ORG In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG You are right. When I restart the machine after I uncommented LPD_ENABLE="YES", /var/run/printer shows up. I also did check /usr/local/sbin and there are lpc and lpd in it. I basically totally mixed LPR and LPRng. Urhh... Thank you! thanx again, ed --- Garance A Drosihn wrote: > At 6:30 PM -0700 7/23/02, Ed Yu wrote: > >When I try to run 'lpc restart all', > >it shows lp: > > cannot open lock file > >lp: > >lpc: unable to connect to /var/run/printer: no such > >file or directory > >lpc: check to see if the master 'lpd' process is > >running. > > couldn't start daemon > > > > > >However, ps aux shows that lpd is running > >daemon 138 lpd: lpd waiting(lpd) > > > >ls -l /var/run shows > >lpd.515 and lprng but no /var/run/printer > > > >I read that /var/run/printer should be created by > lpd > >but it is not. Why? > > The version of lpd which comes as part of freebsd > does use > /var/run/printer for communication between various > processes > (lpd, lpr, lpc, etc). This version of lpd should be > on your > system in /usr/sbin/lpd . > > The fact that you got that error message from lpc > indicates that > you were definitely running the version of lpc which > also comes > as part of the base freebsd operating system. > > You do have an lpd process running, but you say it > shows up in > 'ps' as: lpd: lpd waiting(lpd) > The version of lpd which comes with freebsd would > not show up > that way. You also said /var/run had a file for > 'lprng'. I do > not run lprNG, but I expect that you have installed > it, and that > you have it running. It may even be working > perfectly fine. > > The problem could be as simple as that you're using > the base-system > lpc, when you want to be using the version of 'lpc' > which came with > the lprNG package. The base-system lpc is in: > /usr/sbin/lpc > while I suspect that lprNG would have one in: > /usr/local/sbin/lpc > > So, everything might be working perfectly fine, > except that you do > not have '/usr/local/sbin' in your setting for PATH. > Thus, you are > getting the system version of lpc instead of the > lprNG version. > > -- > Garance Alistair Drosehn = > gad@gilead.netel.rpi.edu > Senior Systems Programmer or > gad@freebsd.org > Rensselaer Polytechnic Institute or drosih@rpi.edu __________________________________________________ Do You Yahoo!? Yahoo! Health - Feel better, live better http://health.yahoo.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message