From owner-freebsd-ports@FreeBSD.ORG Fri Dec 23 07:32:11 2011 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx2.freebsd.org (mx2.freebsd.org [IPv6:2001:4f8:fff6::35]) by hub.freebsd.org (Postfix) with ESMTP id EB557106566C for ; Fri, 23 Dec 2011 07:32:11 +0000 (UTC) (envelope-from dougb@FreeBSD.org) Received: from 172-17-198-245.globalsuite.net (hub.freebsd.org [IPv6:2001:4f8:fff6::36]) by mx2.freebsd.org (Postfix) with ESMTP id 0732E152796; Fri, 23 Dec 2011 07:32:10 +0000 (UTC) Message-ID: <4EF42E7A.2040807@FreeBSD.org> Date: Thu, 22 Dec 2011 23:32:10 -0800 From: Doug Barton Organization: http://SupersetSolutions.com/ User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:9.0) Gecko/20111222 Thunderbird/9.0 MIME-Version: 1.0 To: Christer Edwards References: <4EEC6D9D.1020102@yandex.ru> <4EEEAE03.1080908@yandex.ru> <4EF2FBAE.8050406@yandex.ru> <4EF393BC.2020003@yandex.ru> <4EF3CF11.6070104@FreeBSD.org> <4EF3E10C.4070209@FreeBSD.org> <4EF3F19D.6090905@FreeBSD.org> <4EF429BB.2040906@FreeBSD.org> In-Reply-To: X-Enigmail-Version: undefined OpenPGP: id=1A1ABC84 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: "freebsd-ports@FreeBSD.org" Subject: Re: salt rc.d scripts (Was: RUN_DEPENDS for python based port) X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 23 Dec 2011 07:32:12 -0000 On 12/22/2011 23:21, Christer Edwards wrote: > On Fri, Dec 23, 2011 at 12:11 AM, Doug Barton wrote: >> Did you read the pre-commit checklist? Particularly item 7? > > "If the script uses an interpreted language like perl, python, or > ruby, make certain that command_interpreter is set appropriately." > > Each rc script includes: 'command_interpreter="%%PYTHON_CMD%%"' as > suggested earlier. I looked at another port (security/denyhosts) and > noticed it used "%%PYTHON%%" vs "%%PYTHON_CMD%%", but either way after > installation it expands properly to "/usr/local/bin/python2.7" as I > would expect.. excellent. > Again, the error I'm finding is: > [root@salt /usr/local/etc/rc.d]# ./salt_master start > Starting salt_master. > [root@salt /usr/local/etc/rc.d]# ./salt_master stop > salt_master not running? (check /var/run/salt_master.pid). So now do 'ps axww | grep salt' and confirm that it's really running with python2.7, as opposed to something different. Doug -- [^L] Breadth of IT experience, and depth of knowledge in the DNS. Yours for the right price. :) http://SupersetSolutions.com/