Hi Mark :
I assume this is in the logs :
httpd: Syntax error on line 56 of /etc/httpd/conf/httpd.conf: Cannot load /opt/CA/webagent/bin/libmod_sm24.so into server: libicudata.so.49: cannot open shared object file: No such file or directory
The strace, shows startup via systemd -
12100 15:53:47 [00007fd75cfad9f7] execve("/sbin/apachectl", ["/sbin/apachectl", "start"],
...
12102 15:53:48 [00007fcd052c59f7] execve("/usr/bin/systemctl", ["/usr/bin/systemctl", "start", "httpd.service"],
And we loose all visibility once there since this process is just waiting for httpd to start. Given the startup its a little like the suid bits, where new process is started that does not inherit the env of the parent process at that point.
I did find this article:
https://www.ca.com/us/services-support/ca-support/ca-support-online/knowledge-base-articles.tec1340867.html
In RHEL 7 /etc/sysconfig/httpd, only environment variable may be defined and the source statement does not work.
The resolution is to include the content of ”ca_wa_env.sh” script file in /etc/sysconfig/httpd. Beware that ${VARIABLE} must be replaced with the actual value. Especially, as for ${LD_LIBRARY_PATH} and ${PATH}, see these values by ‘env’ command beforehand. This modification to the httpd file should be logically equal to sourcing the shell script.
Which seems to be on point for your problem and hopefully that will resolve your issue.
And also found this community idea, asking for better integration with systemd for webagent:
Start/stop Red Hat Apache 2.4 (RHEL 7) / Web Agent using systemctl command
Nevertheless, I've reserved a RedHat7 vm, to tinker with the systemd startup, and put up some more exact instructions. The main point is we need to set those three env variable PATH, LD_LIBRARY_PATH and CAPKIHOME, before the httpd program runs. I did find this article which I want to test as well :
arch linux - How to set environment variable in systemd service? - Server Fault
Cheers - Mark