I'm looking at http://wiki.pylonshq.com/display/pylonscookbook/Monitor+Pylons+application+with+supervisord.
I have a few questions:
1. Why does it use a manually created server.py instead of using
paster like normal?
2. Does anyone have an rc script to start supervisor under Ubuntu?
3. Is anyone doing any fancy log rotation or are the defaults reasonable?
Thanks,
-jj
--
It's a walled garden, but the flowers sure are lovely!
http://jjinux.blogspot.com/
The article is way out of date. I've updated it for Supervisor 3.0a6.
Yes, you can use "paster serve" like normal, and also virtualenv.
I've attached an Ubuntu RC script to the article. I haven't done
fancy log rotation but there are options for it.
--
Mike Orr <slugg...@gmail.com>
Huh... I'm getting a 404...?
> I have a few questions:
>
> 1. Why does it use a manually created server.py instead of using
> paster like normal?
I use paster serve (no --reload, --monitor, --daemon, any of which would
mess it up).
> 2. Does anyone have an rc script to start supervisor under Ubuntu?
Huh, actually no. It did occur to me that supervisor should ship with
such a thing. Incidentally we use a per-site supervisord.
> 3. Is anyone doing any fancy log rotation or are the defaults reasonable?
The defaults have seemed reasonable to me (though there's no cleanup or
compression AFAIK, just rotation).
--
Ian Bicking : ia...@colorstudy.com : http://blog.ianbicking.org
Incidentally, one thing I don't think is all that well explained (at
least in the supervisor docs), is that shell scripts must end with:
exec paster serve production.ini
So, if you want a shell script (e.g., to setup the environment) you have
to be sure to use "exec" at the end; this makes paster replace the shell
process.
There is no need to.
> 2. Does anyone have an rc script to start supervisor under Ubuntu?
I've started to run supervisord from init so that init will restart
supervisord if it dies. I've never seen supervisord actually die but
better safe than sorry. This is quite trivial to do with a single extra
line in /etc/inittab. Here is an example from one of my deployments:
# Start supervisord, which manages the Varnish proxy server
plne:2345:respawn:/srv/proxy/bin/supervisord --nodaemon -c /srv/proxy/etc/supervisord.conf
Wichert.
--
Wichert Akkerman <wic...@wiggy.net> It is simple to make things.
http://www.wiggy.net/ It is hard to make things simple.
I decided to use runit. I blogged about how and why here:
http://jjinux.blogspot.com/2008/07/linux-running-paster-under-runit-on.html
I'm not trying to dissuade anyone else from using Supervisor.
Best Regards,