[ejabberd] ejabberd little Tricks? reload config with erl console!

Fritz Kron frz at domaintechnik.at
Thu Jan 27 01:01:45 MSK 2005


Hi,

Erl is new for me, so I have some problems how to reload config from ejabberd without disconnecting users.

At http://ejabberd.jabber.ru/tricks is written how to do this but something is missing. ( my knowledge ;) )

1. got cookie of running ejabberd from /var/lib/ejabberd/.erlang.cookie
2. started a erl console with erl -sname test at rs23 -setcookie ...
3. checked cookie with erlang:get_cookie(). - ok same cookie
4. check ping net_adm:ping(ejabberd at rs23). - pong is ok
5. but when i try this

ejabberd_config:load_file("/etc/ejabberd/ejabberd.cfg").

i get this:


(test at rs23)2> ejabberd_config:load_file("/etc/ejabberd/ejabberd.cfg").

=ERROR REPORT==== 26-Jan-2005::22:44:32 ===
Error in process <0.30.0> on node 'test at rs23' with exit value: {{badmatch,{aborted,{node_not_running,'test at rs23'}}},[{ejabberd_config,set_opts,1},{erl_eval,do_apply,5},{shell,eval_loop,2}]}

** exited: {{badmatch,{aborted,{node_not_running,test at rs23}}},
            [{ejabberd_config,set_opts,1},
             {erl_eval,do_apply,5},
             {shell,eval_loop,2}]} **
(test at rs23)3>


Maybe somebody knows how to reload config? What is wrong?

kind regards.
Fritz Kron



--
-
* Friedrich Kron,  FK15-RIPE          
Domaintechnik.at - Internetdienstleistungen 
Friedrich Ledl, http://www.domaintechnik.at
                                            


More information about the ejabberd mailing list