Re: Python application in rc.d.

[ Available lists | Index of freebsd-questions | Month of Jun 2004 | Week of 20 Jun 2004 | Raw email | View thread | Wrap long lines | Reply | Tag ]
From
Chuck Swiger <cswiger@mac.com>
Date
20 Jun 2004 19:56:59
Subject
Re: Python application in rc.d.
Message-ID
40D5EBFB.5020106@mac.com

In reply to
Referenced by

[ Hide this part ]
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.
Adding an "echo $PATH" somewhere would probably give you more information, but
without a more specific error message, I'll repeat my guess.

[ Without seeing the exact error message, asking us what's really going on
involves jedi mind tricks! :-) ]

--
-Chuck


Elapsed time: 0.176 seconds