From owner-freebsd-questions@freebsd.org Wed Jan 31 21:39:34 2018 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 7A2D1EE3497 for ; Wed, 31 Jan 2018 21:39:34 +0000 (UTC) (envelope-from drosih@rpi.edu) Received: from smtp10.server.rpi.edu (smtp10.server.rpi.edu [128.113.2.230]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "canit.localdomain", Issuer "canit.localdomain" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 259CF79CD7 for ; Wed, 31 Jan 2018 21:39:33 +0000 (UTC) (envelope-from drosih@rpi.edu) Received: from smtp-auth1.server.rpi.edu (route.canit.rpi.edu [128.113.2.231]) by smtp10.server.rpi.edu (8.14.4/8.14.4/Debian-8+deb8u2) with ESMTP id w0VLdQZC028957 (version=TLSv1/SSLv3 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 31 Jan 2018 16:39:26 -0500 Received: from smtp-auth1.server.rpi.edu (localhost [127.0.0.1]) by smtp-auth1.server.rpi.edu (Postfix) with ESMTP id 51CCF580ED; Wed, 31 Jan 2018 16:39:26 -0500 (EST) Received: from [172.16.67.1] (gilead-qc124.netel.rpi.edu [128.113.124.17]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: drosih) by smtp-auth1.server.rpi.edu (Postfix) with ESMTPSA id 462315800D; Wed, 31 Jan 2018 16:39:26 -0500 (EST) From: "Garance A Drosehn" To: "James B. Byrne" Cc: "James B. Byrne via freebsd-questions" Subject: Re: LPD listen directive? Date: Wed, 31 Jan 2018 16:39:26 -0500 X-Mailer: MailMate (1.10r5443) Message-ID: In-Reply-To: <9e6a89f6ac654b113372b3f8b736061a.squirrel@webmail.harte-lyne.ca> References: <870deecf052d36d03aae9613410b38ba.squirrel@webmail.harte-lyne.ca> <0F811690-40FD-45F6-AAD7-BD24E1016DFF@rpi.edu> <4747d314efd1614e211c557b469ad98f.squirrel@webmail.harte-lyne.ca> <20180131104608.858e4a41.freebsd@edvax.de> <9e6a89f6ac654b113372b3f8b736061a.squirrel@webmail.harte-lyne.ca> MIME-Version: 1.0 Content-Type: text/plain; markup=markdown X-Virus-Scanned: ClamAV using ClamSMTP X-Bayes-Prob: 0.0001 (Score 0, tokens from: outgoing, @@RPTN) X-Spam-Score: 0.00 () [Hold at 10.10] X-CanIt-Incident-Id: 03V59DqjC X-CanIt-Geo: ip=128.113.124.17; country=US; region=New York; city=Troy; latitude=42.7495; longitude=-73.5951; http://maps.google.com/maps?q=42.7495,-73.5951&z=6 X-CanItPRO-Stream: outgoing X-Canit-Stats-ID: Bayes signature not available X-Scanned-By: CanIt (www . roaringpenguin . com) on 128.113.2.230 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 31 Jan 2018 21:39:34 -0000 On 31 Jan 2018, at 10:09, James B. Byrne wrote: > On Wed, January 31, 2018 04:46, Polytropon wrote: > >> Check /etc/defaults/rc.conf and you'll discover those: >> >> lpd_enable="NO" # Run the line printer daemon. >> lpd_program="/usr/sbin/lpd" # path to lpd, if you want a different >> one. >> lpd_flags="" # Flags to lpd (if enabled). >> chkprintcap_enable="NO" # Run chkprintcap(8) before running lpd. >> > > Thank you. It would not have occurred to me to look in/etc/defaults/ > >> See "man 8 lpd" for a list of options. > > I did that, several times, before posting. I infer that the thing > to do in this case is to set lpd_flags="-s". Yes, just add lpd_flags="-s" as a line in /etc/rc.conf. You could then run the unix command: /etc/rc.d/lpd restart to restart 'lpd' and see how well it works for you with that option specified. The file /etc/defaults/rc.conf is very useful to see what other things can be set via environment variables in /etc/rc.conf. There are hundreds! -- Garance Alistair Drosehn = drosih@rpi.edu Senior Systems Programmer or gad@FreeBSD.org Rensselaer Polytechnic Institute; Troy, NY; USA