From owner-freebsd-questions@FreeBSD.ORG Mon Sep 29 16:48:51 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 33D4816A4B3 for ; Mon, 29 Sep 2003 16:48:51 -0700 (PDT) Received: from wonkity.com (wonkity.com [65.173.111.5]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5644A4400E for ; Mon, 29 Sep 2003 16:48:50 -0700 (PDT) (envelope-from wblock@wonkity.com) Received: from wonkity.com (localhost [127.0.0.1]) by wonkity.com (8.12.9/8.12.9) with ESMTP id h8TNmnXe054348; Mon, 29 Sep 2003 17:48:49 -0600 (MDT) (envelope-from wblock@wonkity.com) Received: from localhost (wblock@localhost) by wonkity.com (8.12.9/8.12.9/Submit) with ESMTP id h8TNmmeZ054345; Mon, 29 Sep 2003 17:48:49 -0600 (MDT) Date: Mon, 29 Sep 2003 17:48:48 -0600 (MDT) From: Warren Block To: Thomas Fiebig In-Reply-To: <3F77E485.3070107@lrs.eei.uni-erlangen.de> Message-ID: <20030929174550.T54314@wonkity.com> References: <3F77E485.3070107@lrs.eei.uni-erlangen.de> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII 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: Mon, 29 Sep 2003 23:48:51 -0000 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