Ejabberd runtime configuration

Aus Free Software
Zur Navigation springen Zur Suche springen

You can change lots of the configuration at runtime either via the webinterface or by attaching to the ejabberd node. You can do the latter by running "ejabberdctl debug", where you can run any of the following commands:

Check Syntax of file
file:consult("/etc/ejabberd/ejabberd.cfg").
Reload config-file
ejabberd_config:load_file("/etc/ejabberd/ejabberd.cfg").
Note that this only updates ACL and Shapers. Listening ports, virtual hosts, modules and all major options will not change.
Add codepath
code:add_patha("/usr/lib/erlang/lib/xmlrpc-1.13/").
Set loglevel
ejabberd_loglevel:set(4).

Note: A loglevel of 5 sometimes causes additional debug messages on stdout (which breaks munin plugins).
Get loglevel
ejabberd_loglevel:get().
Reload module
l(mod_version).
Where mod_version is the module you want to reload.
Recompile module
c(mod_version).
Where mod_version is the module you want to compile. You will still have to reload the module.

See also