Date: Sun, 20 Jun 2004 23:54:29 +0100 From: Lewis Thompson <lewiz@fajita.org> To: Chuck Swiger <cswiger@mac.com> Cc: FreeBSD-questions <questions@freebsd.org> Subject: Re: Python application in rc.d. Message-ID: <20040620225429.GA73586@fajita.org> In-Reply-To: <40D5EBFB.5020106@mac.com> References: <20040620175144.GA68736@fajita.org> <40D5DF22.5020609@mac.com> <20040620191400.GA70741@fajita.org> <40D5EBFB.5020106@mac.com>
index | next in thread | previous in thread | raw e-mail
[-- Attachment #1 --]
On Sun, Jun 20, 2004 at 03:56:43PM -0400, Chuck Swiger wrote:
> Lewis Thompson wrote:
> [ ... ]
> >>Does the script set $PATH to include the location where python is? If
> >>you don't list /usr/local/bin explicitly, this may be the problem...
> >
> >No, PATH doesn't get set but if I run it as /usr/local/bin/freevo.sh start
> >from a login shell (i.e. after the system has booted) it works fine. I
> >might be getting confused but I think this indicates the script is good
> >and it's a start-up problem. Is this just wrong?
>
> No, you should not assume that running the command from an interactive
> shell is the same environment that a RC startup script or a cron job runs
> under.
You were correct! I've added PATH=${PATH}:%%PREFIX%%/bin to the sample
file (where %%PREIFX%% obviously gets mangled). It works great now. I
must admit I can see a situation where somebody might install my port in
a weird PREFIX and then it still won't find python (if it's installed in
the default, /usr/local) -- but I really can't see any way to handle
that nicely.
Thanks for the help, I'm hopefully going to submit this port soon --
I've only been working on it a few months!
-lewiz.
--
I was so much older then, I'm younger than that now. --Bob Dylan, 1964.
------------------------------------------------------------------------
-| msn:purple@lewiz.net | jabber:lewiz@jabber.org | url:www.lewiz.org |-
[-- Attachment #2 --]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (FreeBSD)
iD8DBQFA1hWkItq0KFQv7T8RAnW5AKCB1UpOCwZofZ3Pxk+G7zXj6K8QyACgkiHK
3t7+XgU2dGTTd7fWjmjlSKI=
=XNXt
-----END PGP SIGNATURE-----
help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040620225429.GA73586>
