After yum or apt-get upgrade you are left with services that need to be restarted in order to start using the new libraries you have just upgraded.
Sometimes you know what to restart but if you haven’t done upgrade in a while it is highly possible that you can miss a service.
The following simple two liner will help you find the services you need to restart:

all_maps=$(grep deleted /proc/[0-9]*/maps|grep -vE ‘\/(SYSV|dev\/)’| cut -d ‘:’ -f1|sort|uniq)
for i in $all_maps; do echo “$(cat ${i/maps/cmdline}|tr ‘\0′ ‘ ‘)”; done|sort|uniq


Comments are closed.

Posted by HackMan
Dated: 22nd November 2016
Filled Under: Linux General, Technology