OpenCog Framework  Branch: master, revision 6f0b7fc776b08468cf1b74aa9db028f387b4f0c0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
cogserver program

To build it use:

make cogserver

This page is a high level overview of the program; to dig into the details read the comprehensive overview.

Dependencies:

The program heavily relies on the server library. Initialisation options are discussed here, while the runnings of the server is detailed in library's page

The opencog.conf file lives in the /lib directory and is loaded by default when Cogserver starts. See the wiki entry that describes it. Several tutorials including Starting the Cogserver and Connecting to the Cogserver are also present in the wiki

Two options are supported by the program: configuration files and option definitions:

cogserver [[-c <config-file>]..] [[-DOPTION="VALUE"]..]

Each config file is loaded sequentially, with the values in later files overwriting earlier. Then each singular option overrides options in config files. If no configuration file is provided it is searched in /etc/opencog.conf and ${CRTDIR}/../lib/opencog.conf

Once the option map has been constructed the program initialises the Logger, creates a CogServer instance, opens the database, loads modules specified in config, enables networking and enters server loop.

The program always returns success (0) to the operating system in normal execution.

Previous Next