From owner-freebsd-questions@FreeBSD.ORG Sun Jun 20 20:03:47 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 6888416A4CE for ; Sun, 20 Jun 2004 20:03:47 +0000 (GMT) Received: from internet.potentialtech.com (h-66-167-251-6.phlapafg.covad.net [66.167.251.6]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3707843D48 for ; Sun, 20 Jun 2004 20:03:47 +0000 (GMT) (envelope-from wmoran@potentialtech.com) Received: from working.potentialtech.com (pa-plum1c-102.pit.adelphia.net [24.53.179.102]) by internet.potentialtech.com (Postfix) with ESMTP id 1178C69A3F; Sun, 20 Jun 2004 16:03:35 -0400 (EDT) Date: Sun, 20 Jun 2004 16:03:34 -0400 From: Bill Moran To: Lewis Thompson Message-Id: <20040620160334.3daf002a.wmoran@potentialtech.com> In-Reply-To: <20040620191400.GA70741@fajita.org> References: <20040620175144.GA68736@fajita.org> <40D5DF22.5020609@mac.com> <20040620191400.GA70741@fajita.org> Organization: Potential Technologies X-Mailer: Sylpheed version 0.9.10 (GTK+ 1.2.10; i386-portbld-freebsd4.9) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit cc: questions@freebsd.org 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 20:03:47 -0000 Lewis Thompson wrote: > On Sun, Jun 20, 2004 at 03:01:54PM -0400, Chuck Swiger wrote: > > Lewis Thompson wrote: > > >I'm trying to create a port for a Python application that I want to > > >start from local/etc/rc.d. The command is this: > > > > > >/usr/bin/su freevo -c "/usr/local/bin/freevo -fs start" > /dev/null 2>&1 > > > > > > Unfortunately when I boot up I get a message about Python not being > > >configured/available at this time. > > > > 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? I don't have much Python-fu, but is sure sounds like the script is failing becuase something it's dependent on hasn't started yet. Check to see what other scripts are in /usr/local/etc/rc.d (I'm guessing that's how you're firing it up on startup) and see if Python has some sort of startup script in there. If so, make sure your script executes afterwards (they're run alphabetically). If that doesn't help, you'll probably have to gather more details. The other suggestions about PATH and other environment are valid concerns as well. -- Bill Moran Potential Technologies http://www.potentialtech.com