ejabberd - Comments for "How can I run an a script attached to the ejabberd process?" https://www.ejabberd.im/node/5223 en One idea. It may be long to https://www.ejabberd.im/node/5223#comment-58410 <p>One idea. It may be long to do the first day, but later it allows you to easily repeat whenever you want. And also will train you to implement other admin tasks in the feature.</p> <p>You can use mod_admin_extra.erl as an example for this:</p> <p>1. write a new module called mod_cluster_admin.erl<br /> 2. in it, define ejabberd commands like add_to_cluster<br /> 3. the related erlang function just has to run what you already run in the debug console</p> <p>When you install a new ejabberd node, copy mod_cluster_admin.beam, and enable that module in ejabberd.cfg. Then start ejabberd, and run "ejabberdctl add_to_cluster" or whatever.</p> Mon, 05 Mar 2012 11:46:25 +0000 mfoss comment 58410 at https://www.ejabberd.im