Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 24 Jul 2002 15:34:22 -0700 (PDT)
From:      Ed Yu <edlyu@yahoo.com>
To:        Garance A Drosihn <drosih@rpi.edu>, freebsd-questions@FreeBSD.ORG
Subject:   Re: /var/run/printer?
Message-ID:  <20020724223422.55541.qmail@web20703.mail.yahoo.com>
In-Reply-To: <p05111703b964d11dda3b@[128.113.24.47]>

next in thread | previous in thread | raw e-mail | index | archive | help
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 <drosih@rpi.edu> 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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020724223422.55541.qmail>