Service Restart after Upgrades

After updating some software on a Linux machine, some services making use of this software will be restarted to make use of the new version. But most of the time, no. One way to refresh it all is to reboot, but unless there is a kernel update you should not need to do such thing.

Find software that needs to be restarted
You can do that with  and looking for process that have opened files that are now gone (DEL). They are still in memory (otherwise said process would be quite unhappy), but they changed on disk since the process first opened them. That's a sign these files have been most likely updated, and the processes who need them should be restarted to benefit from their latest versions.

sudo lsof | grep lib | grep DEL                                   # verbosy sudo lsof | grep lib | grep DEL | awk '{print $1}' | sort | uniq  # less verbosy

Restart service
Well, you know... Once you have your list of processes who could do with some refreshing, their name should easily hint at the service you need to restart :)

sudo service whatever restart