Skip to content

Commit

Permalink
*** empty log message ***
Browse files Browse the repository at this point in the history
svn path=/trunk/boinc/; revision=11315
  • Loading branch information
davidpanderson committed Oct 19, 2006
1 parent 22798e9 commit 083000a
Show file tree
Hide file tree
Showing 6 changed files with 50 additions and 17 deletions.
18 changes: 17 additions & 1 deletion checkin_notes
Original file line number Diff line number Diff line change
Expand Up @@ -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)
14 changes: 10 additions & 4 deletions doc/addons.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@
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>
";

Expand All @@ -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>
Expand All @@ -73,7 +78,8 @@ function show_group($name, $list) {
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'),
);
Expand Down
11 changes: 4 additions & 7 deletions doc/project_daemons.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,24 +25,24 @@
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."
);
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."
Expand All @@ -55,9 +55,6 @@
<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
Expand Down
20 changes: 16 additions & 4 deletions doc/project_tasks.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,19 @@
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.
Expand Down Expand Up @@ -86,7 +98,7 @@
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."
Expand All @@ -100,11 +112,11 @@
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."
Expand Down
2 changes: 1 addition & 1 deletion py/Boinc/setup_project.py
Original file line number Diff line number Diff line change
Expand Up @@ -349,7 +349,7 @@ def dir(*dirs):
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)),
Expand Down
2 changes: 2 additions & 0 deletions tools/run_in_ops
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
#! /bin/sh
cd ../html/ops; ${*}

0 comments on commit 083000a

Please sign in to comment.