Hello,
I have created a rc.d daemon script that runs our Java application, which I will call java_app in this discussion. Our Java applications required a global environment variable to be set in order for the application to run correctly. If that environment variable is not set, the application will fail to start.
I have set this global environment variable in /etc/csh.cshrc and /etc/profile. However, when I start the service via "service java_app start", the service fails because the global environment variable is not set.
I corrected this by setting the environment variable in the java_app script, but this is not the ideal solution. I would like to leverage the global environment variable and not set it in the java_app script.
Is there something I am missing?
I have created a rc.d daemon script that runs our Java application, which I will call java_app in this discussion. Our Java applications required a global environment variable to be set in order for the application to run correctly. If that environment variable is not set, the application will fail to start.
I have set this global environment variable in /etc/csh.cshrc and /etc/profile. However, when I start the service via "service java_app start", the service fails because the global environment variable is not set.
I corrected this by setting the environment variable in the java_app script, but this is not the ideal solution. I would like to leverage the global environment variable and not set it in the java_app script.
Is there something I am missing?