Ejabberd runtime configuration

Aus Free Software
Version vom 13. Februar 2010, 16:37 Uhr von Mati (Diskussion | Beiträge) (Created page with '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 …')
(Unterschied) ← Nächstältere Version | Aktuelle Version (Unterschied) | Nächstjüngere Version → (Unterschied)
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").
Add codepath 
code:add_patha("/usr/lib/erlang/lib/xmlrpc-1.13/").
Set loglevel 
ejabberd_loglevel:set(4).
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.

(Some of the tricks are from here)