2004-02-09 05:11:05 +00:00
|
|
|
<?php
|
|
|
|
|
|
|
|
require_once("docutil.php");
|
|
|
|
|
|
|
|
page_head("The project configuration file");
|
|
|
|
|
|
|
|
echo"
|
|
|
|
A project is described by a configuration file
|
|
|
|
named <b>config.xml</b> in the project's directory.
|
|
|
|
A config.xml file looks like this:
|
|
|
|
<pre>",
|
|
|
|
htmlspecialchars("
|
|
|
|
<boinc>
|
|
|
|
<config>
|
2004-02-15 19:22:01 +00:00
|
|
|
<host>main_host</host> <!-- default host where tasks and daemons run -->
|
|
|
|
<db_name>x</db_name> <!-- database connection info -->
|
|
|
|
<db_host>x</db_host>
|
|
|
|
<db_passwd>x</db_passwd>
|
|
|
|
<db_user>x</db_user>
|
|
|
|
<shmem_key>x</shmem_key> <!-- ID of scheduler shared memory -->
|
|
|
|
<download_url>x</download_url>
|
|
|
|
<download_dir>x</download_dir> <!-- absolute path -->
|
|
|
|
<upload_url>x</upload_url>
|
|
|
|
<upload_dir>x</upload_dir>
|
|
|
|
<cgi_url>x</cgi_url>
|
|
|
|
<stripchart_cgi_url>x</stripchart_cgi_url>
|
|
|
|
[ <one_result_per_user_per_wu/> ]
|
|
|
|
[ <disable_account_creation/> ]
|
|
|
|
[ <max_wus_to_send>10</max_wus_to_send ]
|
2004-02-09 05:11:05 +00:00
|
|
|
<!-- optional; defaults as indicated: -->
|
|
|
|
<project_dir>../</project_dir> <!-- relative to location of 'start' -->
|
|
|
|
<bin_dir>bin</bin_dir> <!-- relative to project_dir -->
|
|
|
|
<cgi_bin_dir>cgi-bin</cgi_dir>
|
|
|
|
<log_dir>log</log_dir>
|
|
|
|
<pid_dir>pid</pid_dir>
|
|
|
|
...
|
|
|
|
</config>
|
|
|
|
<daemons>
|
|
|
|
<daemon>
|
|
|
|
[ <host>foobar</host> ]
|
2004-02-12 01:13:47 +00:00
|
|
|
[ <disabled/> ]
|
2004-02-09 05:11:05 +00:00
|
|
|
<cmd>feeder -d 3</cmd>
|
|
|
|
</daemon>
|
|
|
|
</daemons>
|
|
|
|
<tasks>
|
|
|
|
<task>
|
|
|
|
[ <host>foobar</host> ]
|
2004-02-12 01:13:47 +00:00
|
|
|
[ <disabled/> ]
|
2004-02-09 05:11:05 +00:00
|
|
|
<cmd>get_load</cmd>
|
|
|
|
<output>get_load.out</output>
|
|
|
|
<period>5 min</period>
|
|
|
|
</task>
|
|
|
|
<task>
|
|
|
|
<cmd>echo \"HI\" | mail quarl</cmd>
|
|
|
|
<output>/dev/null</output>
|
|
|
|
<period>1 day</period>
|
|
|
|
</task>
|
|
|
|
</tasks>
|
|
|
|
</boinc>
|
|
|
|
"),
|
|
|
|
"</pre>
|
|
|
|
<b>Tasks</b> are periodic, short-running jobs.
|
2004-02-12 01:13:47 +00:00
|
|
|
<cmd> and <period> are required.
|
2004-02-09 05:11:05 +00:00
|
|
|
OUTPUT specifies the file to output and by default is COMMAND_BASE_NAME.out.
|
2004-02-12 01:13:47 +00:00
|
|
|
Commands are run in the <bin_dir> directory
|
|
|
|
which is a path relative to <project_dir> and output to <log_dir>.
|
2004-02-09 05:11:05 +00:00
|
|
|
|
|
|
|
<p>
|
|
|
|
<b>Daemons</b> are continuously-running programs.
|
2004-02-12 01:13:47 +00:00
|
|
|
The process ID is recorded in the <pid_dir> directory
|
2004-02-09 05:11:05 +00:00
|
|
|
and the process is sent a SIGHUP in a DISABLE operation.
|
|
|
|
<p>
|
|
|
|
Both tasks and daemons can run on a different host (specified by <host>).
|
|
|
|
The default is the project's main host, which is specified in config.host
|
2004-02-12 01:13:47 +00:00
|
|
|
A daemon or task can be turned off by adding the <disabled/> element.
|
2004-02-09 05:11:05 +00:00
|
|
|
";
|
|
|
|
page_tail();
|
|
|
|
?>
|