From owner-freebsd-questions Mon Jul 2 22:17:31 2001 Delivered-To: freebsd-questions@freebsd.org Received: from rhubarb.fwi.com (rhubarb.fwi.com [209.84.175.126]) by hub.freebsd.org (Postfix) with SMTP id 7F09437B401 for ; Mon, 2 Jul 2001 22:17:28 -0700 (PDT) (envelope-from peeter@pirns.net) Received: (qmail 862 invoked by uid 1000); 3 Jul 2001 05:18:00 -0000 Date: Tue, 3 Jul 2001 00:18:00 -0500 From: Peeter Pirn To: freebsd-questions@freebsd.org Subject: lpc start failure Message-ID: <20010703001800.A776@rhubarb.pirns.net> Reply-To: peeter@pirns.net Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2i 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 For the record: `man lpd' conflicts with reality on my 3.2-RELEASE machine. `man lpd' says: The daemon begins processing files after it has successfully set the lock for exclusive access (described a bit later), and scans the spool direc- tory for files beginning with cf. . . . Lpd uses flock(2) to provide exclusive access to the lock file and to prevent multiple daemons from becoming active simultaneously. If the daemon should be killed or die unexpectedly, the lock file need not be removed. On my machine, the lock file needs to be removed even after running `lpc stop', like a good boy: # lpc stop lp2 lp: printing disabled # lpc status lp2 lp: queuing is enabled printing is disabled no entries in spool area printer idle # lpc start lp2 lp: printing enabled daemon started # lpc status lp2 lp: queuing is enabled printing is disabled no entries in spool area printer idle # echo "Now delete the lock file and try again." Now delete the lock file and try again. # rm /var/spool/lpd/djet500-letter-auto-mono/lock # lpc start lp2 lp: daemon started # lpc status lp2 lp: queuing is enabled printing is enabled no entries in spool area printer idle -- Peeter Pirn - peeter@pirns.net To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message