Hi Willy, On 2010-03-03 23:19, Willy Tarreau wrote: > You may be interested in checking Chris May's experience here : > > http://blogs.warwick.ac.uk/chrismay/entry/solaris_smf_and > > (and maybe contact him to give a test to your wrapper).
This blog post was one of the original reasons why I started to write this wrapper script. But thank's for the hint, I will get in touch with him. > When it's stable enough, maybe you'll want to merge it into mainline. > If so, simply drop me a mail and we'll make a place for it in contrib/. Sure. I am going to write some (more) unit tests for it. > As a side note, I see that it requires a recent version of python. Just > out of curiosity, could it (more or less) easily be written in shell ? > I'm asking because on the Solaris machines where I've seen haproxy, > there was no python and it's very unlikely that it will be installed > for a single tool. I don't know for sure. The current implementation uses threads to monitor the spawned subprocesses. So I'm not very confident I could come up with something similar which then also correctly responds to signals. Maybe I could try to port it down to Python 2.4. However I noticed that Python 2.6 comes even on my stripped down Opensolaris zone by default. There are some dependencies to a python on this system. Also, Python 2.6 makes it much easier to work with subprocesses. And as far as I know Python 2.6 will come by default on the next stable Opensolaris release 2010.03. I don't know about older releases though. --Holger

