On Fri, Feb 6, 2009 at 3:50 PM, Matt Feifarek <[email protected]> wrote: > > On Mon, Jun 9, 2008 at 3:18 PM, Jonathan Vanasco <[email protected]> > wrote: >> >> I'm new to ubuntu, and their syntax for scripts seems to differ from >> all the examples i've seen floating in the pylons community ( ie. lots >> of errors ) >> > > One thing that might help, is that by default, Ubuntu isn't using 'bash' for > /bin/sh; it's using 'dash'. > > I've found this borks some of the init.d scripts that I move from one server > to another. > > I don't know what best-practices are for /etc/init.d and pylons, which is > the google search that brought me to your message.
Every distro has different init scripts. Ubuntu uses different functions than Red Hat, which uses different functions than Gentoo, etc. Your best bet is to copy the smallest existing init script on your system and modify it. As for init scripts for Pylons, "Pylons" is not a daemon. I assume you mean an init script for paster. Although the OP asked for a script for Monit, which according to its website is a daemon manager. I use another daemon manager, Supervisor, with the attached Ubuntu script. (Note that I have Supervisor installed in its own virtualenv /usr/local/venv-supervisor.) It was written for Ubuntu 7.04. I will probably work on 8.10 without changes. (I'll know next week when I finish setting up my 8.10 server. :) -- Mike Orr <[email protected]> --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "pylons-discuss" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/pylons-discuss?hl=en -~----------~----~----~----~------~----~------~--~---
supervisor
Description: Binary data
