LPD listen directive?

Garance A Drosehn drosih at rpi.edu
Wed Jan 31 21:39:34 UTC 2018


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 at rpi.edu
Senior Systems Programmer               or   gad at FreeBSD.org
Rensselaer Polytechnic Institute;             Troy, NY;  USA


More information about the freebsd-questions mailing list