check if a service need to restart after a package update

do an update …

then

lsof | grep "path inode"