Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 31 Jan 2018 16:39:26 -0500
From:      "Garance A Drosehn" <drosih@rpi.edu>
To:        "James B. Byrne" <byrnejb@harte-lyne.ca>
Cc:        "James B. Byrne via freebsd-questions" <freebsd-questions@freebsd.org>
Subject:   Re: LPD listen directive?
Message-ID:  <C51450C0-F84F-4351-866B-6FA78A6981FA@rpi.edu>
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>

next in thread | previous in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?C51450C0-F84F-4351-866B-6FA78A6981FA>