salt rc.d scripts (Was: RUN_DEPENDS for python based port)
Greg Larkin
glarkin at FreeBSD.org
Fri Dec 23 02:05:14 UTC 2011
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On 12/22/11 9:01 PM, Greg Larkin wrote:
> On 12/22/11 8:34 PM, Christer Edwards wrote:
>> On Thu, Dec 22, 2011 at 5:45 PM, Doug Barton <dougb at freebsd.org> wrote:
>>> There are some style problems and one real bug that are repeated for all
>>> 3 scripts. I attached a fixed version of one of them, hopefully that
>>> will help you see what's needed to fix the other 2. Also, please review
>>> http://www.freebsd.org/doc/en_US.ISO8859-1/books/porters-handbook/rc-scripts.html,
>>> especially the pre-commit checklist.
>
>> I made the changes you suggested and tried a fresh build of the port
>> inside of a jail. Below is a pastebin of trying to start the
>> service(s) just after installation.
>
>> http://pastebin.com/raw.php?i=2wGBk0PY
>
>> thanks
>
> Hi Christer,
>
> The salt-master script is interpreted by Python, so I believe you'll
> need the following in your rc.d script:
>
> command_interpreter="%%PYTHON_CMD%%"
>
> and the proper SUB_LIST setting in the Makefile. Check the py-fail2ban
> port for some pointers on that.
>
> Hope that helps,
> Greg
Also, I forgot to mention that when I'm faced with similar rc.d
problems, I invoke the script with "sh -x" like so:
sh -x /usr/local/etc/rc.d/viewvc start
That prints all of the shell variable debug information, echoes
commands, etc. I would be interested in seeing that output if you can
post it to pastebin.
I'm not sure my previous suggestion will help anyway, and it looks like
your $command variable is trashed somewhere while the script executes.
Regards,
Greg
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
iEYEARECAAYFAk7z4dEACgkQ0sRouByUApDzfgCgkoTH5sNuPr+jEdbp9rplFD2b
BoAAoJbTTQBZi0oL8URD7C71/7hsKVgU
=Uu2Z
-----END PGP SIGNATURE-----
More information about the freebsd-ports
mailing list