Re: restarting processes when python libraries are upgraded?

2011-06-20 Thread Brian Sutherland
On Mon, Jun 20, 2011 at 11:51:30AM +0800, Paul Wise wrote: > Hi all, > > Since python doesn't keep .py files open its hard to use things like > checkrestart to find out which servers to restart when upgrading a > python library for security updates. I wonder if a dpkg triggers based > mechanism co

Re: restarting processes when python libraries are upgraded?

2011-06-20 Thread Alexander Dutton
On 20/06/11 04:51, Paul Wise wrote: > […] which servers to restart when upgrading a > python library for security updates. Any thoughts? Your Python process knows what it's got imported by looking as sys.modules. Could your trigger prod it with some signal to tell it to dump filenames to some wel

Re: restarting processes when python libraries are upgraded?

2011-06-20 Thread Bernd Zeimetz
On 06/20/2011 12:21 PM, Lars Wirzenius wrote: > Restart them anyway. A proper daemon will deal with restarted gracefully > and the rest can't be helped. Security upgrades are rare enough, > hopefully, that this won't be a frequent problem. Parsing the python -v yourdaemon output might help to defi

Re: restarting processes when python libraries are upgraded?

2011-06-20 Thread Lars Wirzenius
On Mon, Jun 20, 2011 at 11:59:44AM +0200, Bernd Zeimetz wrote: > On 06/20/2011 10:50 AM, Lars Wirzenius wrote: > > On Mon, Jun 20, 2011 at 11:51:30AM +0800, Paul Wise wrote: > >> Since python doesn't keep .py files open its hard to use things like > >> checkrestart to find out which servers to rest

Re: restarting processes when python libraries are upgraded?

2011-06-20 Thread Bernd Zeimetz
On 06/20/2011 10:50 AM, Lars Wirzenius wrote: > On Mon, Jun 20, 2011 at 11:51:30AM +0800, Paul Wise wrote: >> Since python doesn't keep .py files open its hard to use things like >> checkrestart to find out which servers to restart when upgrading a >> python library for security updates. I wonder i

Intending to orphan python-psyco and python-psyco-doc

2011-06-20 Thread Alexandre Fayolle
Hello, I've long stopped using psyco and don't have the time to give it proper care. Upstream (Armin Rigo) is no longer maintaining it, Christian Tismer has taken up the flag. The project is x86 only. Is there anyone wanting to take up that package ? http://packages.qa.debian.org/p/psyco.htm

Re: restarting processes when python libraries are upgraded?

2011-06-20 Thread Lars Wirzenius
On Mon, Jun 20, 2011 at 11:51:30AM +0800, Paul Wise wrote: > Since python doesn't keep .py files open its hard to use things like > checkrestart to find out which servers to restart when upgrading a > python library for security updates. I wonder if a dpkg triggers based > mechanism could perform t

Re: restarting processes when python libraries are upgraded?

2011-06-20 Thread Bernd Zeimetz
On 06/20/2011 10:34 AM, Bernd Zeimetz wrote: > Hi, > >> Since python doesn't keep .py files open its hard to use things like >> checkrestart to find out which servers to restart when upgrading a >> python library for security updates. I wonder if a dpkg triggers based >> mechanism could perform th

Re: restarting processes when python libraries are upgraded?

2011-06-20 Thread Bernd Zeimetz
Hi, > Since python doesn't keep .py files open its hard to use things like > checkrestart to find out which servers to restart when upgrading a > python library for security updates. I wonder if a dpkg triggers based > mechanism could perform this function. Any thoughts? what about watching the p