Changes between Version 2 and Version 3 of Public/Docs/CAEConfigChange


Ignore:
Timestamp:
Dec 16, 2019, 2:21:15 PM (5 years ago)
Author:
Administrator
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Public/Docs/CAEConfigChange

    v2 v3  
    11= Changing CAE configuration
     2== General
    23The exact behaviour of CAE is controlled by a [wiki:Public/Docs/CAEConfigFile configuration file] named {{{CinnamonAsyncEngine.config.xml}}} that resides in the CAE program folder, typically, but not necessarily on the Cinnamon server. The configuration file is loaded when CAE is started. In the configuration file, all plugins that are used are referenced and configured.
    34
     5Each plugin reference in the configuration addresses a certain plugin class in one of the assemblies (.net / mono libraries). All assemblies that are referenced in the configuration must be present in the program folder, otherwise CAE will fail initializing the plugin.
     6
     7CAE and all standard plugins are compatible with .net and mono, and can run on Linux or Windows (and probably iOS - untested).
     8
     9> **NOTE:** Plugins other than the standard ones might be restricted to not run on all platforms, for example, because there is a dependency not available on one of the platforms.
     10
     11== Running CAE
     12On the server running CAE, the configuration is typically such that CAE is started on system boot. This is also the default configuration when running CAE on the Cinnamon Server according to the [wiki:Public/Docs/CinnamonSetupDebian980#InstallingCinnamonAsynchronousEngineCAE installation instructions].
     13
     14CAE is built in a way that it is very robust against crashing plugins. Typically, CAE will log the issue and continue. However, in some rare cases, or due to causes external to CAE, CAE may cease functioning. To make sure it remains available, the standard installation uses {{{supervise}}} contained in the {{{daemontools}}} package on Debian systems. {{{supervise}}} watches a process, in this case CAE, and restarts it when it stops.
     15
     16To run {{{supervise}}} to watch CAE, execute the following command:
     17{{{
     18supervise /opt/cae/bin &
     19}}}
     20
     21The ampersand ({{{&}}}) character at the end of the command line instructs Linux to run the command in the background. Even if CAE logs to the shell, you can close the session and CAE will continue running.
     22
     23== Reloading the configuration file
     24Since the configuration file gets loaded on CAE start, reloading the file can be achieved by restarting CAE. This is also valid if CAE should be restarted after the executable or the libraries have changed.
     25
     26Since CAE is watched by {{{supervise}}} which restarts CAE if it stops, CAE can be restarted by stopping it - {{{supervise}}} will then restart it automatically. To find the CAE process, use the following command on a Linux server:
     27{{{
     28ps aux | grep mono
     29}}}
     30
     31This will list the command
     32