Enabling Alternate Version Of RADOS Striper
Motivation
In order to test alternate implementations of service functionality, such as running a daemon with different libraries, it is useful to have a means of amending the LD_LIBRARY_PATH. We can specify this environment variable in a systemd "override" file; that is, a file in a certain directory containing additional settings.
For a service SERVICE, the directory to use is /etc/systemd/system/SERVICE.d. A file under this directory can contain additional settings using the unit file syntax, that is, stanza [SECTION] followed by settings relevant to that section (in this case, the [Service] section).
For the XRootD Ceph daemon, xrootd@ceph.service, the relevant directory is /etc/systemd/system/xrootd@ceph.service.d
On ceph-dev-gw3, this directory contains the file override.conf (the name is not important) with the following content:
[Service]
Environment="LD_LIBRARY_PATH=/usr/local/lib64:/usr/lib64"
This setting amends the value in the service's unit file (/usr/lib/systemd/system/xrootd@.service).