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...)
(No difference)

Revision as of 20:00, 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".

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

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