From owner-freebsd-questions@FreeBSD.ORG Sun Jun 20 22:54:21 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8F01616A4CE for ; Sun, 20 Jun 2004 22:54:21 +0000 (GMT) Received: from infidel.fajita.org (oldhallfarm.demon.co.uk [80.176.128.55]) by mx1.FreeBSD.org (Postfix) with ESMTP id EC5F043D2F for ; Sun, 20 Jun 2004 22:54:18 +0000 (GMT) (envelope-from lewiz@fajita.org) Received: from majic.fajita.org (majic.fajita.org [192.168.0.4]) by infidel.fajita.org (8.12.10/8.12.10) with ESMTP id i5KMsTY5073923; Sun, 20 Jun 2004 23:54:29 +0100 (BST) (envelope-from lewiz@fajita.org) Received: (from lewiz@localhost) by majic.fajita.org (8.12.10/8.12.10/Submit) id i5KMsTUg073922; Sun, 20 Jun 2004 23:54:29 +0100 (BST) (envelope-from lewiz) Date: Sun, 20 Jun 2004 23:54:29 +0100 From: Lewis Thompson To: Chuck Swiger Message-ID: <20040620225429.GA73586@fajita.org> References: <20040620175144.GA68736@fajita.org> <40D5DF22.5020609@mac.com> <20040620191400.GA70741@fajita.org> <40D5EBFB.5020106@mac.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="TB36FDmn/VVEgNH/" Content-Disposition: inline In-Reply-To: <40D5EBFB.5020106@mac.com> X-GPG-Fingerprint: 90A4 939E 3847 A3E4 8103 2A48 22DA B428 542F ED3F X-GPG-Info: http://www.lewiz.org/~lewiz/pgpkey / horowitz.surfnet.nl User-Agent: Mutt/1.5.6i X-MailScanner-Information: Please contact the ISP for more information X-MailScanner: Found to be clean X-MailScanner-From: lewiz@fajita.org cc: FreeBSD-questions Subject: Re: Python application in rc.d. X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 20 Jun 2004 22:54:21 -0000 --TB36FDmn/VVEgNH/ Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable 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= =20 > >>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 sta= rt > >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? >=20 > No, you should not assume that running the command from an interactive=20 > shell is the same environment that a RC startup script or a cron job runs= =20 > under. You were correct! I've added PATH=3D${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. --=20 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 |- --TB36FDmn/VVEgNH/ Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (FreeBSD) iD8DBQFA1hWkItq0KFQv7T8RAnW5AKCB1UpOCwZofZ3Pxk+G7zXj6K8QyACgkiHK 3t7+XgU2dGTTd7fWjmjlSKI= =XNXt -----END PGP SIGNATURE----- --TB36FDmn/VVEgNH/--