various fixes

svn path=/trunk/boinc/; revision=960
This commit is contained in:
David Anderson 2003-02-24 21:58:23 +00:00
parent 8338487ce9
commit 81eab5e801
4 changed files with 14 additions and 10 deletions

View File

@ -16,12 +16,14 @@
$app_version = new App_Version($app);
$app_version->platform = $platform;
$app_version->exec_dir = "../apps";
$app_version->version = 5;
$app_version->exec_name = "ap_win_0.05.exe";
$core_app = new App("core client");
$core_app_version = new App_Version($core_app);
$core_app_version->platform = $platform;
$core_app_version->exec_dir = "../apps";
$core_app_version->version = 13;
$core_app_version->exec_name = "BOINC_0.13a.exe";
$project->add_app($app);
@ -49,6 +51,5 @@
array_push($work->input_files, "03au00ab_20575_00000.wu");
$work->install($project);
$project->start_feeder();
$project->start_make_work($work);
$project->start_servers();
?>

View File

@ -16,12 +16,14 @@
$app_version = new App_Version($app);
$app_version->platform = $platform;
$app_version->exec_dir = "../apps";
$app_version->version = 5;
$app_version->exec_name = "ap_win_0.05.exe";
$core_app = new App("core client");
$core_app_version = new App_Version($core_app);
$core_app_version->platform = $platform;
$core_app_version->exec_dir = "../apps";
$core_app_version->version = 13;
$core_app_version->exec_name = "BOINC_0.13a.exe";
$project->add_app($app);
@ -48,6 +50,5 @@
array_push($work->input_files, "03au00ab_20575_00000.wu");
$work->install($project);
$project->start_feeder();
$project->start_make_work($work);
$project->start_servers();
?>

View File

@ -467,18 +467,14 @@ class Project {
PassThru("cp $this->source_dir/sched/file_upload_handler $this->project_dir/cgi/file_upload_handler$handler_num");
}
function start_server(){
PassThru("cd $this->project_dir/cgi; ./start_server >> start_server_out 2>&1");
function start_servers(){
PassThru("cd $this->project_dir/cgi; ./start_servers >> start_servers_out 2>&1");
}
function start_feeder(){
PassThru("cd $this->project_dir/cgi; ./feeder -asynch >> feeder_out 2>&1");
}
function result_retry($app, $nerror = 5, $ndet = 5, $nredundancy = 5){
PassThru("cd $this->project_dir/cgi; ./result_retry -app $app->name -nerror $nerror -ndet $ndet -nredundancy $nredundancy >> result_retry_out 2>&1");
}
function start_result_retry($app, $nerror = 5,$ndet = 5, $nredundancy = 5){
PassThru("cd $this->project_dir/cgi; ./result_retry -app $app->name -nerror $nerror -ndet $ndet -nredundancy $nredundancy -asynch >> result_retry_out 2>&1");
}

View File

@ -14,6 +14,11 @@
$project->add_user($user);
$project->add_app($app);
$project->add_app_version($app_version);
$project->start_feeder = true;
$project->start_make_work = true;
$project->start_validate = true;
$project->start_file_delete = true;
$project->start_assimilator = true;
$project->install(); // must install projects before adding to hosts
$host->log_flags = "log_flags.xml";
@ -36,6 +41,7 @@
$project->start_file_delete();
$project->start_assimilator($app);
$project->start_stripchart();
//$project->start_servers();
$host->run();
$project->stop();
?>