porting python script from linux to freebsd

Andrew MacIntyre andymac at bullseye.apana.org.au
Thu Jul 29 00:56:24 UTC 2010


Rocky Borg wrote:
> I hope this is the right place to direct this question. I've been trying 
> to track down a python issue that is specific to freebsd. The Cherokee 
> webserver (http://www.freshports.org/www/cherokee/) has a python gui 
> backend to admin the server. It works perfectly under Linux. 
> Unfortunately it doesn't work correctly under FreeBSD. There aren't a 
> lot of people that use FreeBSD to run cherokee so the main developers 
> don't seem to interested in fixing it. I'm trying to track down the bug.
> 
> If cherokee is started from rc.d scripts or command line it works fine. 
> You can stop the server cleanly. But once it's started from the admin 
> interface (which uses python) it can't be stopped. The admin interface 
> shows that it sees cherokee running on the correct pid but once started 
> from the admin interface the server can't be stopped 
> (/usr/local/etc/rc.d/cherokee stop stops working also). Any information 
> would be greatly appreciated since it's hard finding issues specific to 
> freebsd/python. And the basic attitude seems to be if it works on linux 
> that's good enough.
> 
> Has anyone experienced this sort of problem on FreeBSD or perhaps could 
> direct me to something that would explain what's going on.
> 
> Bug report on the issue:
> 
> http://code.google.com/p/cherokee/issues/detail?id=527
> http://www.cherokee-project.com
> 
> Script that handles starting and stopping the server:
> 
> http://www.ctwow.net/sladeimages/Cherokee.py
> 
> Any help would be greatly appreciated.

Can't offer specific help, but anything involving signals and/or threads 
is a likely place to start investigating

-- 
-------------------------------------------------------------------------
Andrew I MacIntyre                     "These thoughts are mine alone..."
E-mail: andymac at bullseye.apana.org.au  (pref) | Snail: PO Box 370
        andymac at pcug.org.au             (alt) |        Belconnen ACT 2616
Web:    http://www.andymac.org/               |        Australia


More information about the freebsd-python mailing list