Linux+ - Shared Libraries
-
I just finished watching the episode about Shared Libraries and I have a question. Don mentioned that some newly manually added libraries might not work until the machine is rebooted, which in some situations is not ideal for certain servers that may need to stay online as much as possible. Wouldn't running ldconfig (i think that's the command that will update the list which would normally add the library in order to work) It has been awhile since I've had to do that on my home machines. . I am not sure if that was covered as I could have missed its mention or I'm just mistaken and maybe some libraries might require the machine to be reboot and no command will do? Though in the real world, I'm sure nothing is perfect and a reboot is the only course of action in some cases.
-
David,
It depends on the library in question. If it is a library used by a kernel module, a reboot is necessary. If it is a library used by a service, restarting the service is usually efficient. However, there are certainly exceptions. Libraries that are called intermittently can be updated with any kind of restart or reboot. The next time a process calls the library it just magically receives the new library. That is the case with libraries like Java which can be updated on the fly.
Sorry I don't have a cut-and-dry answer for you, but it varies from library to library.
Thanks,
Don Pezet
Host, ITProTV