Changes between Version 1 and Version 2 of ProjectTasks


Ignore:
Timestamp:
Apr 26, 2007, 1:42:38 PM (17 years ago)
Author:
davea
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • ProjectTasks

    v1 v2  
    11= Periodic tasks =
    22
    3 '''Periodic tasks''' are programs that are run periodically. They are executed by the [StartTool bin/start --cron] program, which you should run from cron. To do this, run crontab and add a line of the form
     3'''Periodic tasks''' are programs that are run periodically. They are executed by the [StartTool bin/start --cron] program, which you should run from cron. To do this, run '''crontab -e''' and add a line of the form
    44{{{
    550,5,10,15,20,25,30,35,40,45,50,55 * * * * HOME/projects/PROJECT/bin/start --cron
     
    1212{{{
    1313    <task>
    14       <cmd>          get_load        </cmd>
    15       <output>       get_load.out    </output>
    16       <period>       5 min          </period>
    17       [ <host>       host.ip        </host>       ]
    18       [ <disabled>   1              </disabled>   ]
    19       [ <always_run> 1               </always_run> ]
     14      <cmd> get_load </cmd>
     15      <output> get_load.out </output>
     16      <period> 5 min </period>
     17      [ <host> host.ip </host>       ]
     18      [ <disabled>  0|1 </disabled>   ]
     19      [ <always_run> 0|1  </always_run> ]
    2020    </task>
    2121    <task>
    22       <cmd>      echo "HI" | mail root@example.com    </cmd>
    23       <output>   /dev/null                            </output>
    24       <period>   1 day                                </period>
     22      <cmd> run_in_ops update_forum_activities.php </cmd>
     23      <output> update_form_activities.out </output>
     24      <period> 1 day </period>
    2525    </task>
    2626    <task>
     
    5555        Run this task regardless of whether or not the project is enabled (for example, a script that logs the current CPU load of the host machine).
    5656
    57 A project newly created by [MakeProject make_project] has no periodic tasks. Here are some programs you might want to run as periodic tasks:
     57A project newly created by [MakeProject make_project] has periodic tasks that run the following:
    5858
    5959 db_dump::
     
    6161 update_profile_pages.php::
    6262        Generate HTML files with lists of links to user profiles, organized alphabetically and by country. Recommended period: a few days.
    63  update_stats -update_teams -update_users -update_hosts::
     63 update_stats::
    6464        Update the recent average credit fields of users, teams, and hosts. This is important if you use send personalized [VolunteerRecruit mass emails] or [http://boinc.berkeley.edu/reminder_email.php reminder emails], or use recent credit to enable message-board posting. Recommended period: every few days.
    6565 update_uotd.php::