From owner-freebsd-stable@FreeBSD.ORG Mon Apr 13 14:15:01 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 77992106575C for ; Mon, 13 Apr 2009 14:15:01 +0000 (UTC) (envelope-from bp@barryp.org) Received: from itasca.hexavalent.net (itasca.hexavalent.net [67.207.138.180]) by mx1.freebsd.org (Postfix) with ESMTP id 404ED8FC8B for ; Mon, 13 Apr 2009 14:14:57 +0000 (UTC) (envelope-from bp@barryp.org) Received: from eden.barryp.org (host-145-114-107-208.midco.net [208.107.114.145]) by itasca.hexavalent.net (Postfix) with ESMTPS id BB8CA3C1EC for ; Mon, 13 Apr 2009 09:14:56 -0500 (CDT) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=barryp.org; s=itasca; t=1239632096; bh=5lYA5k8ST8hBvHz9TKlcE3Q64/alfvXYjg2t3o8muBM=; h=Message-ID:Date:From:MIME-Version:To:CC:Subject:References: In-Reply-To:Content-Type:Content-Transfer-Encoding; b=FJhNSLyE7zIm 7NDUpU7VDAPFJ2/P2eOeX2Welty4GxMFEFTEp7icimBPTpHYyzhVQN0CwvcHlv5nlYL EJLOZh0zdSVjNRlRkdIobnTC2x7UUJ0EHJUhzxY1gleA/sQwLNGiuuzRdu5BK7SOPtU o7ZlQrlAdz9JbL2I3sqMvni2Y= Received: from macbook.home ([10.66.1.10]) by eden.barryp.org with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.67 (FreeBSD)) (envelope-from ) id 1LtMw1-000MQi-GV; Mon, 13 Apr 2009 09:14:53 -0500 Message-ID: <49E348DD.3080700@barryp.org> Date: Mon, 13 Apr 2009 09:14:53 -0500 From: Barry Pederson User-Agent: Thunderbird 2.0.0.21 (Macintosh/20090302) MIME-Version: 1.0 To: Jase Thew References: <20090409120815.A0FAB10658D2@hub.freebsd.org> <49E20DFB.9000208@barryp.org> <49E325A1.9000602@beardz.net> In-Reply-To: <49E325A1.9000602@beardz.net> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit 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 14:15:11 -0000 Jase Thew wrote: > 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. Thanks, that's an easy fix. ---- There are some inconsistencies though in the default paths used in various places around the system. It seems that we have (on 7.1 at least) /etc/rc: /sbin:/bin:/usr/sbin:/usr/bin /etc/rc.shutdown: /sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin (why no /usr/local/bin ?) /etc/login.conf, /usr/share/skel/dot.profile, /usr/share/skel/dot.cshrc: /sbin:/bin:/usr/sbin:/usr/bin:/usr/games:/usr/local/sbin:/usr/local/bin:~/bin Would it make any sense to do something like to add /usr/local/s?bin later in the rc startup as a system default - to make automatic boot-startup behavior more similar to manual service-starting behavior... --- defaults/rc.conf.original 2009-01-19 22:58:58.490989000 -0600 +++ defaults/rc.conf 2009-04-13 09:09:01.680065507 -0500 @@ -51,6 +51,7 @@ populate_var="AUTO" # Set to YES to always (re)populate /var, NO to never cleanvar_enable="YES" # Clean the /var directory local_startup="/usr/local/etc/rc.d" # startup script dirs. +local_startup_path="/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin" # Path to use when starting local scripts script_name_sep=" " # Change if your startup scripts' names contain spaces rc_conf_files="/etc/rc.conf /etc/rc.conf.local" --- rc.original 2009-01-19 22:56:22.411969000 -0600 +++ rc 2009-04-13 09:07:16.046050290 -0500 @@ -100,7 +100,10 @@ # case ${local_startup} in [Nn][Oo] | '') ;; -*) find_local_scripts_new ;; +*) find_local_scripts_new + PATH=local_startup_path + export PATH + ;; esac files=`rcorder ${skip} /etc/rc.d/* ${local_rc} 2>/dev/null` ----------------- You could also perhaps pull that $local_startup_path into rc.shutdown Barry