*** empty log message ***

svn path=/trunk/boinc/; revision=11315
This commit is contained in:
David Anderson 2006-10-19 18:42:31 +00:00
parent 22798e94af
commit 083000ad62
6 changed files with 50 additions and 17 deletions

View File

@ -11225,4 +11225,20 @@ Rytis 19 Oct 2006
user/
create_account.php
inc/
xml.inc
xml.inc
David 19 Oct 2006
- project back end: add mechanism so that PHP scripts can be
run from the 'start' script in a way that works
with both PHP4 and PHP5.
To run html/ops/update_profile_pages.php, for example, put
<cmd>run_in_ops update_profile_pages.php</cmd>
in your config.xml file <task> entry.
(run_in_ops is a script that lives in bin/,
cds into ../html/ops, and executes its args)
py/Boinc/
setup_project.py
tools/
run_in_ops (new)

View File

@ -22,8 +22,8 @@ If this is not enough you should contact the author.
Instructions for installing and running BOINC are
<a href=participate.php>here</a>.
<li>
To submit an add-on for inclusion in this list, please
email <a href=contact.php>David Anderson</a>.
To submit an add-on for inclusion in this list,
please email <a href=contact.php>David Anderson</a>.
</ul>
";
@ -46,8 +46,13 @@ function show_group($name, $list) {
$version = $item[2];
if (!$version) $version ='<br>';
$desc = $item[3];
if (strstr($file, 'http://')) {
$url = $file;
} else {
$url = "addons/$file";
}
echo "
<tr><td><a href=addons/$file>$itemname</a></td>
<tr><td><a href=$url>$itemname</a></td>
<td>$version</td>
<td>$desc</td>
</tr>
@ -73,7 +78,8 @@ array('SETITracker_V1.0BETA.zip', 'SETI@Boinc Tracker', '1.0BETA', 'SETI@Boinc T
array('SetiMapView_Setup_v6.54.exe', 'SETI@home-MapView', '6.54', 'SETI@home-Mapview creates skymaps for the BOINC projects SETI@home-II, Einstein@home and Astropulse.'),
array('DBSetup.zip', 'SQL Setup for BoincSpy', 'V 0.7', 'Stores Workunits into SQL database'),
array('spy_pp_v101_setispy_v341.zip', 'Spy++', '', 'Loader for the new version of SetiSpy (3.4.1), the famous SETI addon of Roelof'),
array('tminst112.zip', 'ThreadMaster', '1.12build128', 'Control max CPU usage and prevent overheat'),
array('http://threadmaster.tripod.com/', 'ThreadMaster', '', 'Control max CPU usage and prevent overheating (not specific to BOINC)'),
array('http://mion.faireal.net/BES/', 'BES', '', 'Control max CPU usage and prevent overheating (not specific to BOINC)'),
array('boinclogger.zip', 'boinc logger', '1.0', 'saves the messages part of boinc so you can track down errors'),
array('inst_nB_v13.exe', 'nBOiNC', '1.3.x', 'stats picker'),
);

View File

@ -25,10 +25,10 @@ echo html_text("
list_start();
list_item("cmd",
"The command used to start the daemon.
This command will be run in the project's bin/ directory."
Must be a program in the project's bin/ directory."
);
list_item("host",
"Specifies where the daemon should run.
"Specifies the host on which the daemon should run.
The default is the project's main host,
as specified in config.xml."
);
@ -36,13 +36,13 @@ list_item("disabled",
"If nonzero, ignore this entry"
);
list_item("output",
"Name of output file.
"Name of output file (in the log_HOSTNAME directory).
Defaults to the program name followed by '.log'.
If you're running multiple instances of a daemon on one host,
you must specify this."
);
list_item("pid_file",
"Name of file used to store the process ID.
"Name of file used to store the process ID (in the pid_HOSTNAME directory).
Defaults to the program name followed by '.pid'.
If you're running multiple instances of a daemon on one host,
you must specify this."
@ -55,9 +55,6 @@ Daemons are started when you run the
<a href=tool_start.php>bin/start</a> script,
and killed (by a SIGHUP signal) when you run
<a href=tool_start.php>bin/stop</a>.
The process ID is recorded in the &lt;pid_dir> directory
By convention, daemon X running on host Y
writes it log output to log_Y/X.log.
<p>
Typically, this mechanism is used to run

View File

@ -43,7 +43,19 @@ list_start();
list_item(
"cmd",
"The command used to perform the task.
This command will be run in the &lt;bin_dir> directory."
Must be a program in the project's /bin directory.
<p>
You can run PHP scripts as periodic tasks.
These scripts must be in the html/ops/ directory,
and can be run with a command of the form
<pre>run_in_ops scriptname</pre>
The script should be executable, and should have the form
<pre>
#! /usr/bin/env php
&lt;?php
...
?&gt;
"
);
list_item("host",
"Specifies where the daemon shoulr run.
@ -86,7 +98,7 @@ list_item("db_dump",
Details are <a href=db_dump.php>here</a>.
Recommended period: 7 days."
);
list_item("update_profile_pages",
list_item("update_profile_pages.php",
"Generate HTML files with lists of links to user profiles,
organized alphabetically and by country.
Recommended period: a few days."
@ -100,11 +112,11 @@ list_item("update_stats -update_teams -update_users -update_hosts",
or use recent credit to enable message-board posting.
Recommended period: every few days."
);
list_item("update_uotd",
list_item("update_uotd.php",
"Select a new User of the Day.
Period: 1 day."
);
list_item("../html/ops/update_forum_activities.php",
list_item("update_forum_activities.php",
"Recompute 'popularity' estimages for threads and posts
in the Questions and Answers message boards.
Recommended period: 1 hour."

View File

@ -349,7 +349,7 @@ def install_boinc_files(dest_dir):
force_symlink(dir('bin', 'start'), dir('bin', 'stop'))
force_symlink(dir('bin', 'start'), dir('bin', 'status'))
map(lambda (s): install(srcdir('tools',s), dir('bin',s)),
[ 'create_work', 'add', 'xadd', 'dbcheck_files_exist',
[ 'create_work', 'add', 'xadd', 'dbcheck_files_exist', 'run_in_ops',
'update_versions', 'parse_config', 'grep_logs', 'db_query',
'watch_tcp', 'sign_executable', 'dir_hier_move', 'dir_hier_path' ])
map(lambda (s): install(srcdir('py/Boinc',s), dir('bin',s)),

2
tools/run_in_ops Executable file
View File

@ -0,0 +1,2 @@
#! /bin/sh
cd ../html/ops; ${*}