Created attachment 164640 [details] The whole patch as an output from git-show In my /etc/printcap the :if: capability points to a Ruby script. This script contains the shebang line #!/usr/bin/env ruby After boot the printer daemon lpd has got its environment variable PATH from /etc/rc. This PATH does not include /usr/local/bin. Therefore the Ruby executable will not be found and the print commands fails. I extended the printcap mechanism by a filter-path capability that allows to set the PATH variable before exec()ing into the filter.
Reminder
Reminder!
No answer for almost two years! What the hell is going on here? I just installed 11.1 and I noticed that there is no solution for this problem since 10.2. Why doesn't anybody at least reject the report?
The patch is not needed. Just add this to your /etc/rc.conf and restart lpd (service lpd restart), this works. lpd_env="PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin"
(In reply to Eugene Grosbein from comment #6) The lpd_env="PATH=..." workaround is not part of the ldp project an therefore never will be mentioned in the man page. It fixes the behaviour but not the documentation problem.
(In reply to software from comment #7) printcap(5) manual page could be modified to add a paragraph to the FILTERS section with a note that filter inherit environment from lpd(8) that can be modified with rc.conf's lpd_env variable. Please submit another documentation PR, if you like to.