Loading libraries during server reboot
Hi,
I am configuring a server with some libraries (along with other stuffs). For the libraries to be loaded automatically on a reboot, I create a config file and put it in Code:
/etc/ld.so.conf.d/mylibs.conf My servers are Redhat 6.5 64 bit. I expect the libraries in the /usr/local/lib64 to be loaded automatically on a reboot. This seems to work on some servers but not on others. On those server that it did not work, if I issue ldconfig manually after the server reboot (as root), they get loaded. Why is it not loading on some servers? Which service or setting, loads libraries from directories specified in all the conf files in the /etc/ld.so.conf.d? Please let me know if you need any more information from my servers? Thanks |
just drop a bash script calling them and or setting variables in /etc/profile.d
that is what this folder is for |
Quote:
Quote:
Quote:
Quote:
Quote:
Sane options are calling 'ldconfig' from a "@reboot" in /etc/crontab or from /etc/rc.d/rc.local. Using the latter ensures all automount points and services are available first, so if you meant to have these libraries loaded for use by services on startup you best check and reload the cache on shutdown or reload instantly using an inotify-based service like 'incron'. |
Hi John,
I am with unspawn - profile.d is not the right place for this in my view. I have already implemented the rc.local solution. I just wanted to confirm whether there is any better method for this. Thanks both of you for your time. Thanks |
All times are GMT -5. The time now is 08:34 PM. |