Difference between revisions of "Seon Core main configuration file"

From Seon
Jump to: navigation, search
(New page: == Main configuration file == Seon's main configuration file defines be basic information about database connectivity and some other, really basic information which cannot reside in the da...)
 
Line 6: Line 6:
 
  /etc/seon.conf
 
  /etc/seon.conf
 
but they are all aware of searching this file at a given position. For this position information, nearly all binaries have the parameter "<code>-C</code>" (beware of the uppercase!). Example:
 
but they are all aware of searching this file at a given position. For this position information, nearly all binaries have the parameter "<code>-C</code>" (beware of the uppercase!). Example:
  /opt/seon/bin/seonrd -C /opt/seon/seon.conf
+
  $ /opt/seon/bin/seonrd -C /opt/seon/seon.conf
 
This example searches the config file at the given position "<code>/opt/seon/seon.conf</code>".
 
This example searches the config file at the given position "<code>/opt/seon/seon.conf</code>".
 +
 +
In addition, all running Seon binaries set the environment variable [[Seon_Core_environment_variables|"Seon_CFGFILE"]], which is also interpreted by all binaries. An alternative way to the above example could then be:
 +
$ xport Seon_CFGFILE=/opt/seon/seon.conf
 +
$ /opt/seon/bin/seonrd
  
 
=== Content ===
 
=== Content ===
Line 14: Line 18:
 
  KEY=VALUE
 
  KEY=VALUE
  
 +
=== Variables ===
 
Illegal defintions are:
 
Illegal defintions are:
 
  KEY = VALUE
 
  KEY = VALUE

Revision as of 20:02, 10 May 2010

Main configuration file

Seon's main configuration file defines be basic information about database connectivity and some other, really basic information which cannot reside in the database.

Position

All Seon binaries search the configuration file at

/etc/seon.conf

but they are all aware of searching this file at a given position. For this position information, nearly all binaries have the parameter "-C" (beware of the uppercase!). Example:

$ /opt/seon/bin/seonrd -C /opt/seon/seon.conf

This example searches the config file at the given position "/opt/seon/seon.conf".

In addition, all running Seon binaries set the environment variable "Seon_CFGFILE", which is also interpreted by all binaries. An alternative way to the above example could then be:

$ xport Seon_CFGFILE=/opt/seon/seon.conf
$ /opt/seon/bin/seonrd

Content

The configuration file contains textual information in the format "key=value", where no space must be existant between key, the character "=" and the corresponding value. Lines beginning with a hash sign ("#") are comments and will not be taken into account. Example:

# comment 
KEY=VALUE

Variables

Illegal defintions are:

KEY = VALUE
KEY =VALUE
KEY= VALUE

Example

The following examples show various settings: locale and remote databases, socket connects, the possible database types and persistant connections.

local MySQL server via socket

DB_HOST=localhost
DB_USER=seon
DB_PASS=seon
DB_NAME=seon
DB_SOCKET=/var/lib/mysql.sock
DB_PORT=3306
TABLEPREFIX=seon_
MYSQLCLIENT=/usr/local/mysql/bin/mysql