From owner-freebsd-stable@FreeBSD.ORG Mon Apr 13 12:03:18 2009 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 8BF741065790 for ; Mon, 13 Apr 2009 12:03:18 +0000 (UTC) (envelope-from bazerka@beardz.net) Received: from mx-2.btshosting.co.uk (mx-2.btshosting.co.uk [87.117.208.79]) by mx1.freebsd.org (Postfix) with ESMTP id A59848FC13 for ; Mon, 13 Apr 2009 12:03:13 +0000 (UTC) (envelope-from bazerka@beardz.net) Received: from [192.168.1.65] (host86-138-188-7.range86-138.btcentralplus.com [86.138.188.7]) (Authenticated sender: bazerka@beardz.net) by mx-2.btshosting.co.uk (Postfix) with ESMTPA id 437846E549B; Mon, 13 Apr 2009 12:44:43 +0100 (BST) Message-ID: <49E325A1.9000602@beardz.net> Date: Mon, 13 Apr 2009 12:44:33 +0100 From: Jase Thew User-Agent: Thunderbird 2.0.0.19 (Windows/20081209) MIME-Version: 1.0 To: Barry Pederson References: <20090409120815.A0FAB10658D2@hub.freebsd.org> <49E20DFB.9000208@barryp.org> In-Reply-To: <49E20DFB.9000208@barryp.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: clamav-milter 0.95.1 at mx-2.btshosting.co.uk X-Virus-Status: Clean Cc: xer , freebsd-stable@freebsd.org Subject: Re: apache 2.0.63 and php5 X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 13 Apr 2009 12:03:35 -0000 Barry Pederson wrote: > > I've been burned by this a fair number of times, wish there was some > good way of having things starting from /usr/local/etc/rc.d to have > /usr/local/bin and sbin in the path on a consistent basis. > > Barry Hi, /etc/profile is the system wide profile for sh shell. So, should you need to do this for all sh scripts ( including /usr/local/etc/rc.d/ scripts), simply add a PATH line to /etc/profile, eg: PATH=/foo/bar:/bar/baz:$PATH; export PATH or PATH=$PATH:/foo/bar:/bar/baz; export PATH depending on whether you want your additional directories to be searched before or after the default path. Regards, Jase.