From owner-freebsd-questions@FreeBSD.ORG Mon Sep 29 00:51:39 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 E7D2D16A4BF for ; Mon, 29 Sep 2003 00:51:39 -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 2060644039 for ; Mon, 29 Sep 2003 00:51:36 -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])JAA01287 for ; Mon, 29 Sep 2003 09:51:34 +0200 (MET DST) Message-ID: <3F77E485.3070107@lrs.eei.uni-erlangen.de> Date: Mon, 29 Sep 2003 09:51:33 +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: questions@FreeBSD.org Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Subject: 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 07:51:40 -0000 Hello, my question concerns the path settings for daemons like lpd, if started from rc.conf with lpd_enable="YES". 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? Thanks, Thomas BTW: My /.profile (or /.cshrc) contents the /usr/local/bin path!