I want to update glibc according to RedHat: https://rhn.redhat.com/errata/RHSA-2015-0090.html
Is it required restart a server after the glibc upgrade?
Super User is a question and answer site for computer enthusiasts and power users. It only takes a minute to sign up.
Sign up to join this communityI want to update glibc according to RedHat: https://rhn.redhat.com/errata/RHSA-2015-0090.html
Is it required restart a server after the glibc upgrade?
A restart is not technically required, because only programs which use glibc need to be restarted, and the kernel does not use glibc.
That being said, restarting everything that uses glibc is sufficiently broad that you might as well just reboot.
For example, /sbin/init
uses glibc. However restarting it is trivial (run init u
as root).
systemd
appears to have a resolver all of its own. In my experience replacing libraries used by long-running processes can cause instabilities. Reboot, and be happy.
Jan 28, 2015 at 17:20
If you are happy with manually restarting individual services that are using the vulnerable library, you can run this command and restart the listed processes:
# lsof | awk '/libc-/ {print $1}' | sort -u
You will probably find it will be easier to restart the machine entirely.
lsof | awk '/DEL.*libc/{print $1}' | sort -u
to match only on those that link to the now deleted (after the update) libc.
lsof | grep libc
? It matches a ton of libraries including libcurl, libcups, libcairo etc. Grepping for libc-
seems to produce the correct results.
Yes, so the processes that depend on the old version of glibc start again with the new version of the library. Statically linked programs also need to be recompiled for this reason.