Difference between revisions of "OS4X Core environment variables"
Jump to navigation
Jump to search
Line 1: | Line 1: | ||
Some environment variables are created and/or set by all OS4X binaries. These variables are: | Some environment variables are created and/or set by all OS4X binaries. These variables are: | ||
− | *<code>OS4X_CFGFILE</code>: OS4X main configuration file (absolute path information) | + | *<code>OS4X_CFGFILE</code>: [[OS4X_Core_installation#Main_configuration|OS4X main configuration file (absolute path information)]] |
− | *<code>OS4X_IN_DIR</code>: incoming data directory | + | *<code>OS4X_IN_DIR</code>: [[OS4X_Core_configuration#data_incoming_directory|incoming data directory]] |
− | *<code>OS4X_OUT_DIR</code>: outgoing data directory | + | *<code>OS4X_OUT_DIR</code>: [[OS4X_Core_configuration#data_outgoing_directory|outgoing data directory]] |
− | *<code>OS4X_TMP_DIR</code>: temporary data directory | + | *<code>OS4X_TMP_DIR</code>: [[OS4X_Core_configuration#temporary_directory|temporary data directory]] |
− | *<code>OS4X_BIN_DIR</code>: binary program directory | + | *<code>OS4X_BIN_DIR</code>: [[OS4X_Core_configuration#binary_installation_directory|binary program directory]] |
− | *<code>OS4X_SCRIPT_DIR</code>: script installation directory | + | *<code>OS4X_SCRIPT_DIR</code>: [[OS4X_Core_configuration#script_installation_directory|script installation directory]] |
− | *<code>OS4X_BACKUP_DIR</code>: backup directory | + | *<code>OS4X_BACKUP_DIR</code>: [[OS4X_Core_configuration#database_backup_directory|backup directory]] |
− | *<code>RAND_FILE</code>: entropy file for OFTP2 needs | + | *<code>RAND_FILE</code>: [[OS4X_Core_configuration#Entropy_file_for_random_data|entropy file for OFTP2 needs]] |
− | *<code>OPENSSL_BIN</code>: absolute path to openSSL binary | + | *<code>OPENSSL_BIN</code>: [[OS4X_Core_configuration#absolute_path_to_.27openssl.27|absolute path to openSSL binary]] |
− | *<code>RRDTOOL_BIN</code>: absolute path to RRDtools binary | + | *<code>RRDTOOL_BIN</code>: [[OS4X_Core_configuration#absolute_path_to_.27rrdtool.27|absolute path to RRDtools binary]] |
− | *<code>RRDB_DATAPATH</code>: RRD data path | + | *<code>RRDB_DATAPATH</code>: [[OS4X_Core_configuration#RRDB_data_path|RRD data path]] |
*<code>OS4X_WEBGUI_DIR</code>: web interface installation directory | *<code>OS4X_WEBGUI_DIR</code>: web interface installation directory | ||
*<code>JAVA_BIN</code>: configured path to the Java runtime (JRE) binary | *<code>JAVA_BIN</code>: configured path to the Java runtime (JRE) binary | ||
− | *<code>CA_FILE</code>: configured absolute path to the root certificate file | + | *<code>CA_FILE</code>: [[OS4X_Core_configuration#root_certificate_file_.26_root_certificate_path|configured absolute path to the root certificate file]] |
− | *<code>CA_PATH</code>: configured absolute path to the root certificate directory | + | *<code>CA_PATH</code>: [[OS4X_Core_configuration#root_certificate_file_.26_root_certificate_path|configured absolute path to the root certificate directory]] |
All processes started by OS4X (event scripts, plugins, etc.) have access to these environment variables. | All processes started by OS4X (event scripts, plugins, etc.) have access to these environment variables. |
Revision as of 17:53, 6 February 2010
Some environment variables are created and/or set by all OS4X binaries. These variables are:
OS4X_CFGFILE
: OS4X main configuration file (absolute path information)OS4X_IN_DIR
: incoming data directoryOS4X_OUT_DIR
: outgoing data directoryOS4X_TMP_DIR
: temporary data directoryOS4X_BIN_DIR
: binary program directoryOS4X_SCRIPT_DIR
: script installation directoryOS4X_BACKUP_DIR
: backup directoryRAND_FILE
: entropy file for OFTP2 needsOPENSSL_BIN
: absolute path to openSSL binaryRRDTOOL_BIN
: absolute path to RRDtools binaryRRDB_DATAPATH
: RRD data pathOS4X_WEBGUI_DIR
: web interface installation directoryJAVA_BIN
: configured path to the Java runtime (JRE) binaryCA_FILE
: configured absolute path to the root certificate fileCA_PATH
: configured absolute path to the root certificate directory
All processes started by OS4X (event scripts, plugins, etc.) have access to these environment variables.
The environment variable "OS4X_CFGFILE
" points to the absolute path to the OS4X main configuration file. This has two effects:
- you may start OS4X programs in a shell where this variable is set without using the parameter "
-C
" for all binaries (because the environment variable points to the correct position of the configfile) - all subsequent processes started by OS4X (like event scripts) don't have to bother about the given configfile (like plugins of OS4X Enterprise).