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>
|
|
|
|
<host>main_host</host>
|
|
|
|
...
|
|
|
|
<!-- 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();
|
|
|
|
?>
|