Path: usenet.ee.pdx.edu!cs.uoregon.edu!news.uoregon.edu!vixen.cso.uiuc.edu!howland.reston.ans.net!math.ohio-state.edu!jussieu.fr!univ-lyon1.fr!swidir.switch.ch!newsfeed.ACO.net!Austria.EU.net!EU.net!uunet!news.dal.mobil.com!japeters
From: japeters@dlsunf.dal.mobil.com (J.A. Peters [Jim])
Newsgroups: comp.sys.sun.admin
Subject: Re: /dev/printer missing
Date: 15 Aug 1994 22:20:55 GMT
Organization: MEPTEC - Mobil Oil Corporation
Lines: 18
Distribution: world
Message-ID: <32opo7$65r@dlsn31>
References: <1994Aug11.145937.6593@c1.nkw.ac.uk>
NNTP-Posting-Host: dlsunf.dal.mobil.com

In article <1994Aug11.145937.6593@c1.nkw.ac.uk>, k_ejm@c1.nkw.ac.uk (Ed Marchewicz) writes:
> 
> We have a Sun running SunOS 4.1.1-IP on which the file (socket?)
> /dev/printer is missing. lpc fails to communicate with lpd with
> errors "lpc: connect: No such file or directory, couldn't start daemon".
> Killing and restarting lpd makes no difference. How can /dev/printer
> be recreated ?

/etc/rc zaps /dev/printer and /var/spool/lpd.lock when you reboot and both
are created by lpd when it starts up. excerpt of /etc/rc follows:

if [ -f /usr/lib/lpd ]; then
        rm -f /dev/printer /var/spool/lpd.lock
        /usr/lib/lpd;           echo -n ' printer'
fi

cheers, 
james, japeters@dal.mobil.com
