From owner-freebsd-questions@FreeBSD.ORG Mon Sep 29 23:30:29 2003 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 673FA16A4B3 for ; Mon, 29 Sep 2003 23:30:29 -0700 (PDT) Received: from stanley.e-technik.uni-erlangen.de (stanley.e-technik.uni-erlangen.de [131.188.137.28]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8948844027 for ; Mon, 29 Sep 2003 23:30:27 -0700 (PDT) (envelope-from tfie@lrs.eei.uni-erlangen.de) Received: from lrs.eei.uni-erlangen.de (mcdowell.e-technik.uni-erlangen.de [131.188.137.108])IAA15543; Tue, 30 Sep 2003 08:30:23 +0200 (MET DST) Message-ID: <3F7922FE.1090604@lrs.eei.uni-erlangen.de> Date: Tue, 30 Sep 2003 08:30:22 +0200 From: Thomas Fiebig Organization: Institute for Computer Aided Circuit Design User-Agent: Mozilla/5.0 (X11; U; SunOS sun4u; en-US; rv:1.1a+) Gecko/20020703 X-Accept-Language: de, en MIME-Version: 1.0 To: Warren Block References: <3F77E485.3070107@lrs.eei.uni-erlangen.de> <20030929174550.T54314@wonkity.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit cc: questions@freebsd.org Subject: Re: Which PATH is set for daemons? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 30 Sep 2003 06:30:29 -0000 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 >