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 <[EMAIL PROTECTED]> 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            =  
> [EMAIL PROTECTED]
> Senior Systems Programmer           or 
> [EMAIL PROTECTED]
> Rensselaer Polytechnic Institute    or 
[EMAIL PROTECTED]


__________________________________________________
Do You Yahoo!?
Yahoo! Health - Feel better, live better
http://health.yahoo.com

To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-questions" in the body of the message

Reply via email to