From: John M. <joh...@gc...> - 2009-11-25 18:56:10
|
Fabrizio Ferraro wrote: > I recently updated my htpc running Freevo 1.9.0 on Gentoo. > As part on the update process, Python 2.6 was installed. > > After some time I realized that I'm no more able to shutdown freevo and > any of the helpers I'm running (recordserver and webserver) because > freevo pretend that they are not running: > > izio@htpc ~ $ freevo webserver --stop --debug > [SNIP] > stop(name='webserver', arg=['python', > '/opt/freevo/lib/python2.6/site-packages/freevo/helpers/webserver.py']) > getpid(name='webserver', args=['python', > '/opt/freevo/lib/python2.6/site-packages/freevo/helpers/webserver.py']) > 4:fname='/tmp/webserver-1000.pid' pid=0 arg='python' > cannot kill 'webserver' no pid > webserver not running > > Well... trust me: the webserver _is_ running ;) > > Looking at the debug messages (and then at the freevo code), it seems > that the getpid() function expect the name of the python executable to > be "python", while on my Gentoo system the name is instead > "/usr/bin/python2.6". > Gentoo allows you to have more than one version of python present on the > same system. You can select which one you want to use by running > "eselect python set <version>". /usr/bin/python is actually a simlink to > /usr/bin/python-wrapper, so I straced it and discovered that it > basically reads a configuration file (which is a text file containing > just the string "python2.6") and than execve("/usr/bin/python2.6"). This > is the reason of the difference in the executable names. Judging by the > dates, it seems that the python-wrapper executable has been installed > during the last update. > > Unfortunately, I do not have the necessary programming skills to fix it > myself and can't do much more than reporting the problem. > By now, I'll continue to send TERM signals around ;) > > Cheers, > izio > From a glance it seems that a patch might be needed to resolve this. Do you want to submit a bug report to the tracker? John |