I need to setup environment variables for application servers. For example: ORACLE_HOME, ORACLE_SID, JAVA_OPTS, CATALINA_BASE.
I know how to set system environment variables in Windows, but no ideas for Linux.
I start application servers manually, just assign and export them, then start application server (Tomcat, Oracle). But how to setup environment variables for Linux services, which start automatically during system startup?
I use Centos 5.4. server users shell is /bin/sh