ejabberd - Comments for "mod_cron - Execute scheduled commands" https://www.ejabberd.im/mod_cron en cron at 8:00 https://www.ejabberd.im/mod_cron#comment-53653 <p>howto setup mod_cron to run every day at 8:00 ?</p> Tue, 14 Oct 2008 06:02:25 +0000 vinnitu comment 53653 at https://www.ejabberd.im Use webadmin, or ejabberd svn, or apply a patch https://www.ejabberd.im/mod_cron#comment-42110 <p>Currently, you set a task this way:</p> <pre>{modules, [ ... {mod_cron, [{tasks, [ {3, hours, mnesia, info, []} ]}]}, ... ]}.</pre><p>This starts a mod_cron in each vhost, and configures all them with the same options. This means each vhost will run this task.</p> <p>To enable a module only in a vhost, or to have different configurations for each vhost, you need to use the webadmin. </p> <p>A feature was recently included in ejabberd svn which allows to define per-vhost modules: <noindex><a href="https://support.process-one.net/browse/EJAB-297" rel="nofollow" >Config file: add a way to append values to config options</a></noindex>. So, if you use a recent version of ejabberd SVN, you can enable mod_cron only in a vhost, and only this one will run the task. To do that, use only this configuration:</p> <pre>{host_config, "two.example.org", [ {modules, [ {mod_cron, [{tasks, [ {3, hours, mnesia, info, []} ]}]} ]} ]}.</pre><p> If you don't want to update to ejabberd SVN, you can find the patch in Bugzilla: <noindex><a href="http://www.jabber.ru/bugzilla/show_bug.cgi?id=241" rel="nofollow" >New option host_config_add</a></noindex>.</p> Sun, 12 Aug 2007 18:04:35 +0000 mfoss comment 42110 at https://www.ejabberd.im Specifying a Host? https://www.ejabberd.im/mod_cron#comment-39699 <p>Is there a way to specify running a cron for a specific Host? If you currently setup a cron it runs the same function on all Hosts.</p> <p>Jeffrey R. | dS</p> Wed, 08 Aug 2007 13:41:27 +0000 dS_Jeffrey comment 39699 at https://www.ejabberd.im