I just saw a tweet advising to pin supervisor egg to 3.0a4 for those who use collective.recipe.supervisor with memmon (Memmon is moved from supervisor 3.0a7 and added to the superlance plugin). Don't do that. The 3.0a7 introduced new commands (reread, update and avail) and many improvements and fixes that will make your life easier.
You don't need to pin supervisor to 3.0a4. The collective.recipe.supervisor has already a plugins option. The ONLY change you have to make to your current buildout configuration file is to add superlance to the plugins option:
You don't need to pin supervisor to 3.0a4. The collective.recipe.supervisor has already a plugins option. The ONLY change you have to make to your current buildout configuration file is to add superlance to the plugins option:
and then run:
[buildout]
...
[spvisor]
recipe = collective.recipe.supervisor
...
plugins = superlance
...
That's all.
$ ./bin/buildout -v install spvisor
06 Jun 2009 17:55:38
Thanks for the clarification, Mustapha. When I tweeted about pinning to 3.0a4 I didn't have time to investigate the changes or make sure the new version worked with collective.recipe.supervisor. The new commands do look pretty helpful.
28 Mar 2010 15:24:22
Passing from 2's serie to 3's serie of supervisor egg, collective.recipe.supervisor generates a config that doesn't pass anymore.
I get an error running bin/supervisord :
Error: Unexpected end of key/value pairs
The incriminated line is the last of each eventlistener (Memmon i.e.):
environment=SUPERVISOR_USERNAME=admin,SUPERVISOR_PASSWORD=secret,SUPERVISOR_SERVER_URL=http://localhost:9002
If I put
environment=SUPERVISOR_USERNAME=admin,SUPERVISOR_PASSWORD=zopeadmin08,SUPERVISOR_SERVER_URL=\'http://localhost:9002'
(the last in apostrophs)
It passes ok!
Have you an idea of what is the problem there?
Your Python/Zone has given me quite a few tricks : Thank you for your posts!
serge
02 Aug 2010 10:30:51
Serge, Mustapha,
I've been experimenting with supervisor, memmon and putting this into buildout with collective.recipe.supervisor .
There's been a change in supervisord configuration where the environmentt variables passed to a process with the environment keyword need to to be quoted. So you should put
environment=bla='bla',boe='blah2'
the collective recipe does not put the quotes in there, making the event listener not start up, if I add the quotes everything works.
Mustapha, I cannot find the SVN repository for the recipe in the plone collective anymore. Has it been moved? Can I contribute a fix?