From owner-freebsd-questions Wed Jul 24 14:59:28 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 0F57F37B400 for ; Wed, 24 Jul 2002 14:59:25 -0700 (PDT) Received: from mail.rpi.edu (mail.rpi.edu [128.113.22.40]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7013B43E81 for ; Wed, 24 Jul 2002 14:59:24 -0700 (PDT) (envelope-from drosih@rpi.edu) Received: from [128.113.24.47] (gilead.netel.rpi.edu [128.113.24.47]) by mail.rpi.edu (8.12.1/8.12.1) with ESMTP id g6OLxMvB203670; Wed, 24 Jul 2002 17:59:22 -0400 Mime-Version: 1.0 X-Sender: drosih@mail.rpi.edu Message-Id: In-Reply-To: <20020724013038.2915.qmail@web20702.mail.yahoo.com> References: <20020724013038.2915.qmail@web20702.mail.yahoo.com> Date: Wed, 24 Jul 2002 17:59:21 -0400 To: Ed Yu , freebsd-questions@FreeBSD.ORG From: Garance A Drosihn Subject: Re: /var/run/printer? Content-Type: text/plain; charset="us-ascii" ; format="flowed" X-Scanned-By: MIMEDefang 2.3 (www dot roaringpenguin dot com slash mimedefang) 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 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 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message