From owner-freebsd-amd64@FreeBSD.ORG Mon Aug 15 17:26:19 2005 Return-Path: X-Original-To: freebsd-amd64@freebsd.org Delivered-To: freebsd-amd64@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 84E8516A41F for ; Mon, 15 Aug 2005 17:26:19 +0000 (GMT) (envelope-from kgunders@teamcool.net) Received: from koyukuk.teamcool.net (koyukuk.teamcool.net [209.161.34.19]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2A7C843D45 for ; Mon, 15 Aug 2005 17:26:18 +0000 (GMT) (envelope-from kgunders@teamcool.net) Received: from koyukuk.teamcool.net (localhost [127.0.0.1]) by koyukuk.teamcool.net (TeamCool Rocks) with ESMTP id 65BC811EB9; Mon, 15 Aug 2005 11:26:18 -0600 (MDT) Received: from cochise.teamcool.net (unknown [192.168.1.57]) by koyukuk.teamcool.net (TeamCool Rocks) with ESMTP id 2BA8B11EB8; Mon, 15 Aug 2005 11:26:18 -0600 (MDT) Date: Mon, 15 Aug 2005 11:26:17 -0600 From: Ken Gunderson To: Brooks Davis Message-Id: <20050815112617.5a6e80f3.kgunders@teamcool.net> In-Reply-To: <20050815171957.GC8859@odin.ac.hmc.edu> References: <20050815092434.282c53f5.kgunders@teamcool.net> <20050815171957.GC8859@odin.ac.hmc.edu> Organization: Teamcool Networks X-Mailer: Sylpheed version 1.9.12 (GTK+ 2.6.7; i386-portbld-freebsd5.4) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Virus-Scanned: ClamAV using ClamSMTP Cc: freebsd-amd64@freebsd.org Subject: Re: rc init path question X-BeenThere: freebsd-amd64@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to the AMD64 platform List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 15 Aug 2005 17:26:19 -0000 On Mon, 15 Aug 2005 10:19:57 -0700 Brooks Davis wrote: > On Mon, Aug 15, 2005 at 09:24:34AM -0600, Ken Gunderson wrote: > > Greets: > > > > Not strictly amd64 related but I'm not subsribed to questions so here > > goes.... > > > > Why is PATH set so restrictively (e.g. PATH=/sbin:/bin:/usr/sbin:/usr/ > > bin) by rc init? Startup scripts in rc.d inherit this and seem to have > > difficulties finding things upon boot whereas running the script > > manually works fine since .cshrc has come into play by then. Or am I > > totally missing something here.?? > > Predictability. Those directories should in general contain only system > programs who's behavior should be what we expect. Adding other > directories such as /usr/local/bin would complicate matters. This means > you have to test slightly more carefully, but using full paths to > commands is good practice in general, particularly for system startup > scripts. Yes indeed, but for example, in the case of something like Zope it needs to know where to look for things like lnyx, etc. wh/get stashed in /usr/local/bin. Adding a path statement to rc.d/zope.sh solves the problem but it took me a while to figure out why manual starts worked but not reboots...;-P Or maybe I should be specifying PATH in zope.conf in this case. in any event, I've subsequently also noticed this in a couple other rc.d scripts. Thanks for your input. -- Best regards, Ken Gunderson Q: Because it reverses the logical flow of conversation. A: Why is putting a reply at the top of the message frowned upon?