Hello based on this doc:
I cannot understand how/where to insert the DT_CUSTOM_PROP on Tomcat runninx on linux System.
Do someone have already done this? Can you guide me to do so?
Solved! Go to Solution.
If this is a standard tomcat and you are starting it with the catalina.sh startup script, just put it in the $CATALINA_HOME/bin/setenv.sh script (or create it).
Don't forget to export the variables, for example:
Thank you this was the right solution for me, 9 points to gryffindor!
@Julius L. hello! I'm back here 🙂
I was wondering, do you have any knowledge on where can I do this in Apache Web Server?
Sure I do 🙂
However, it depends on your Apache Web Server distribution and how you start the apache process. Typically in Linux distributions, you will have to set it in the envvars file in your apache config directory or in the bin directory as they start it with the apachectl wrapper script.
If you start it directly by running the binary httpd, then you will have to do it in your script.
I'm investigating this for a vanilla installation of httpd Apache web server 🙂
As I wrote - it works even for vanilla installation. If you are starting it with apachectl, then you can put it into envvars file. If you are starting the httpd binary directly, then you will have to find a place where it fits you best.
Thank you very much!
Do we know how to implement this DT_CUSTOM_PROP on container world. We have Vmware Tanzu cloud with springboot apps and wanted to know how to implement CT_CUSTOM_PROP on every service and process.