From owner-freebsd-amd64@FreeBSD.ORG Mon Aug 15 18:35:11 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 9E66616A41F for ; Mon, 15 Aug 2005 18:35:11 +0000 (GMT) (envelope-from brdavis@odin.ac.hmc.edu) Received: from odin.ac.hmc.edu (Odin.AC.HMC.Edu [134.173.32.75]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4823443D45 for ; Mon, 15 Aug 2005 18:35:11 +0000 (GMT) (envelope-from brdavis@odin.ac.hmc.edu) Received: from odin.ac.hmc.edu (localhost.localdomain [127.0.0.1]) by odin.ac.hmc.edu (8.13.0/8.13.0) with ESMTP id j7FIZAG2024003; Mon, 15 Aug 2005 11:35:10 -0700 Received: (from brdavis@localhost) by odin.ac.hmc.edu (8.13.0/8.13.0/Submit) id j7FIZAkL024002; Mon, 15 Aug 2005 11:35:10 -0700 Date: Mon, 15 Aug 2005 11:35:10 -0700 From: Brooks Davis To: Ken Gunderson Message-ID: <20050815183510.GE8859@odin.ac.hmc.edu> References: <20050815092434.282c53f5.kgunders@teamcool.net> <20050815171957.GC8859@odin.ac.hmc.edu> <20050815112617.5a6e80f3.kgunders@teamcool.net> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="phCU5ROyZO6kBE05" Content-Disposition: inline In-Reply-To: <20050815112617.5a6e80f3.kgunders@teamcool.net> User-Agent: Mutt/1.4.1i X-Virus-Scanned: by amavisd-new X-Spam-Status: No, hits=0.0 required=8.0 tests=none autolearn=no version=2.63 X-Spam-Checker-Version: SpamAssassin 2.63 (2004-01-11) on odin.ac.hmc.edu 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 18:35:11 -0000 --phCU5ROyZO6kBE05 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Aug 15, 2005 at 11:26:17AM -0600, Ken Gunderson wrote: > On Mon, 15 Aug 2005 10:19:57 -0700 > Brooks Davis wrote: >=20 > > On Mon, Aug 15, 2005 at 09:24:34AM -0600, Ken Gunderson wrote: > > > Greets: > > >=20 > > > Not strictly amd64 related but I'm not subsribed to questions so here > > > goes.... > > >=20 > > > Why is PATH set so restrictively (e.g. PATH=3D/sbin:/bin:/usr/sbin:/u= sr/ > > > bin) by rc init? Startup scripts in rc.d inherit this and seem to ha= ve > > > 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.?? > >=20 > > 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. >=20 > 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. The script should use /usr/local/bin/lnyx in that case. Actually, it should use %%LOCALBASE%%/bin/lnyx and have LOCALBASE be set by the port installation porcess. -- Brooks --=20 Any statement of the form "X is the one, true Y" is FALSE. PGP fingerprint 655D 519C 26A7 82E7 2529 9BF0 5D8E 8BE9 F238 1AD4 --phCU5ROyZO6kBE05 Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (GNU/Linux) iD8DBQFDAOBdXY6L6fI4GtQRAj4MAKDXhB24ELSM7i5MUwhWdpTJwWBrIQCeM5CF CrpKLcBMoQ9OdBG6TrhfPXQ= =V5JG -----END PGP SIGNATURE----- --phCU5ROyZO6kBE05--