Date: Wed, 24 Jul 2002 17:59:21 -0400 From: Garance A Drosihn <drosih@rpi.edu> To: Ed Yu <edlyu@yahoo.com>, freebsd-questions@FreeBSD.ORG Subject: Re: /var/run/printer? Message-ID: <p05111703b964d11dda3b@[128.113.24.47]> In-Reply-To: <20020724013038.2915.qmail@web20702.mail.yahoo.com> References: <20020724013038.2915.qmail@web20702.mail.yahoo.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?p05111703b964d11dda3b>