[gentoo-dev] Lib_users, a post-upgrade helper

2010-07-28 Thread Tobias Klausmann
Hi! Short version: Upgrades happen, libs get deleted/replaced; my script (links below) tells you what processes to restart. Long version: I've recently realized that many admins aren't aware of a problem when upgrading their systems. Usually, people are told to run revdep-rebuild and do sundry

Re: [gentoo-dev] Lib_users, a post-upgrade helper

2010-07-28 Thread Jeroen Roovers
On Wed, 28 Jul 2010 11:38:12 +0200 Tobias Klausmann klaus...@gentoo.org wrote: To make a long posting boring: I've hacked up a Python script that does all that and prints out a nice summary. It's available from here: http://schwarzvogel.de/software-misc.shtml Or, for those who want to go

Re: [gentoo-dev] Lib_users, a post-upgrade helper

2010-07-28 Thread Jeroen Roovers
On Wed, 28 Jul 2010 14:53:01 +0200 Jeroen Roovers j...@gentoo.org wrote: On Wed, 28 Jul 2010 11:38:12 +0200 Tobias Klausmann klaus...@gentoo.org wrote: To make a long posting boring: I've hacked up a Python script that does all that and prints out a nice summary. It's available from

Re: [gentoo-dev] Lib_users, a post-upgrade helper

2010-07-28 Thread Tobias Klausmann
Hi! On Wed, 28 Jul 2010, Jeroen Roovers wrote: To make a long posting boring: I've hacked up a Python script that does all that and prints out a nice summary. It's available from here: http://schwarzvogel.de/software-misc.shtml Is it like checkrestart[1], originally from

Re: [gentoo-dev] Lib_users, a post-upgrade helper

2010-07-28 Thread Paweł Hajdan, Jr.
On 7/28/10 2:38 AM, Tobias Klausmann wrote: To make a long posting boring: I've hacked up a Python script that does all that and prints out a nice summary. Comments/suggestions appreciated. It would be interesting to integrated it with portage, similarly to how it now displays you have xx

Re: [gentoo-dev] Lib_users, a post-upgrade helper

2010-07-28 Thread Jeroen Roovers
On Wed, 28 Jul 2010 15:23:55 +0200 Tobias Klausmann klaus...@gentoo.org wrote: While that approach has the advantage of not only catching mapped files but every open FD, I am thinking about implementing something similar with lib_users (but using /proc/pid/fd/). The great advantage would be

Re: [gentoo-dev] Lib_users, a post-upgrade helper

2010-07-28 Thread Tobias Klausmann
Hi! On Wed, 28 Jul 2010, Jeroen Roovers wrote: While that approach has the advantage of not only catching mapped files but every open FD, I am thinking about implementing something similar with lib_users (but using /proc/pid/fd/). The great advantage would be that it also discovers

Re: [gentoo-dev] Lib_users, a post-upgrade helper

2010-07-28 Thread Tobias Klausmann
Hi! On Wed, 28 Jul 2010, Paweł Hajdan, Jr. wrote: It would be interesting to integrated it with portage, similarly to how it now displays you have xx configuration files to update. It could print you have xx services to restart. Definitely. One of the reasons why I expressly mention dual- or

Re: [gentoo-dev] Lib_users, a post-upgrade helper

2010-07-28 Thread Tobias Klausmann
Hi! And hot off the tar, here's v0.2: http://www.schwarzvogel.de/software-misc.shtml http://www.schwarzvogel.de/pkgs/lib_users-0.2.tar.gz Several suggestions were implemented, including more Pythonic code in a few spots and new patterns for the blacklist. Please test and comment. Regards,