Hacker News new | ask | show | jobs
by michaelx386 4156 days ago
Thank you, it's not always clear when a reboot is needed after an update. I do it with kernel updates but wouldn't have in this case until I read your comment and ran the command to check.

If would be nice if package managers would let us know when this is necessary, I expect that might be a hard thing to get right though.

2 comments

You can check to see if any running process are using any stale libraries pretty easily:

sudo lsof | grep lib | grep DEL

You can then either reload those processes manually, or just bounce the box if that's easier.

There's also a rare chance that a program is statically linked, in which case upgrading glibc won't help, the program would need to be recompiled.
Yeah, that's a good point, and definitely worth mentioning, but obviously rebooting isn't going to help in that case either. The parent was asking about how they would know if they need to reboot or not.
It is nearly impossible to statically link glibc.
... with nss-modules being a major culprit, ironically... (on which gethostbyname relies greatly)...
For debian, you can use "checkrestart -v" from the "debian-goodies" package.