Date: Mon, 15 Aug 2005 11:35:10 -0700 From: Brooks Davis <brooks@one-eyed-alien.net> To: Ken Gunderson <kgunders@teamcool.net> Cc: freebsd-amd64@freebsd.org Subject: Re: rc init path question Message-ID: <20050815183510.GE8859@odin.ac.hmc.edu> In-Reply-To: <20050815112617.5a6e80f3.kgunders@teamcool.net> References: <20050815092434.282c53f5.kgunders@teamcool.net> <20050815171957.GC8859@odin.ac.hmc.edu> <20050815112617.5a6e80f3.kgunders@teamcool.net>
next in thread | previous in thread | raw e-mail | index | archive | help
--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 <brooks@one-eyed-alien.net> 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--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20050815183510.GE8859>