Date: Tue, 30 Sep 2003 08:30:22 +0200 From: Thomas Fiebig <tfie@lrs.eei.uni-erlangen.de> To: Warren Block <wblock@wonkity.com> Cc: questions@freebsd.org Subject: Re: Which PATH is set for daemons? Message-ID: <3F7922FE.1090604@lrs.eei.uni-erlangen.de> References: <3F77E485.3070107@lrs.eei.uni-erlangen.de> <20030929174550.T54314@wonkity.com>
next in thread | previous in thread | raw e-mail | index | archive | help
Hi Warren, thanks for your answer! Your solution is what I have done as a quick and dirty solution, but I asked me why the maintainers of ghostscript port are using scripts counting on set pathes... Thomas Warren Block wrote: > On Mon, 29 Sep 2003, Thomas Fiebig wrote: > > >>I have inserted a driver in /etc/printcap that uses a script installed >>by ghostscript. This script located in /usr/local/bin itself uses gs >>without an explicite path (/usr/local/bin/gs). Now starting anything >>to print with this driver results in an lpd error message 'gs: not >>found'. Stopping lpd and starting it as root from a terminal seems to >>work (but don't know exactly!). So my question is: For daemons started >>in rc.conf (like lpd) which path do they see during startup? > > > Like with most shell scripts, you probably shouldn't count on any path > beung set. Set it explicitly in your script. I'd make a copy of the > Ghostscript script and edit that, or just incorporate it in the script > that is calling that script. > > -Warren Block * Rapid City, South Dakota USA >
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3F7922FE.1090604>