Marco d'Itri <md@Linux.IT> wrote: > Something like this maybe? > > for f in /proc/*/exe; do > if nm -D $f | grep -q ....; then > echo how to restart it? > fi > done I usually use a shell fragment that looks something like this: grep -l "dpkg.old" /proc/*/maps | cut -f 3 -d '/' | xargs ps -eocomm Throw in a 'sort -u' and it gives a close approximation of what services may need to be restarted. The step from program name to restart method has to be done manually. -- Sam "Eddie" Couter | mailto:sam@couter.dropbear.id.au Debian Developer | mailto:eddie@debian.org | jabber:sam@jabber.topic.com.au OpenPGP fingerprint: A46B 9BB5 3148 7BEA 1F05 5BD5 8530 03AE DE89 C75C
Attachment:
pgpB8VpEwqFgx.pgp
Description: PGP signature