2003-02-12 23:06:49 +00:00
|
|
|
#! /usr/local/bin/php
|
|
|
|
<?php
|
|
|
|
// This script creates a BOINC project.
|
|
|
|
// You just need to plug in an application,
|
|
|
|
// and back-end systems for creating work and validating results
|
|
|
|
|
|
|
|
include_once("test.inc");
|
|
|
|
|
|
|
|
$project = new Project;
|
2003-02-14 22:59:25 +00:00
|
|
|
$project->short_name = "sah";
|
|
|
|
$project->long_name = "SETI@home II";
|
2003-02-12 23:06:49 +00:00
|
|
|
|
|
|
|
$platform = new Platform("windows_intelx86", "Windows");
|
|
|
|
|
|
|
|
$app = new App("Astropulse");
|
|
|
|
$app_version = new App_Version($app);
|
|
|
|
$app_version->platform = $platform;
|
|
|
|
$app_version->exec_dir = "../apps";
|
2003-02-24 21:58:23 +00:00
|
|
|
$app_version->version = 5;
|
2003-02-24 21:31:36 +00:00
|
|
|
$app_version->exec_name = "ap_win_0.05.exe";
|
2003-02-12 23:06:49 +00:00
|
|
|
|
|
|
|
$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";
|
2003-02-24 21:58:23 +00:00
|
|
|
$core_app_version->version = 13;
|
2003-02-14 22:59:25 +00:00
|
|
|
$core_app_version->exec_name = "BOINC_0.13a.exe";
|
2003-02-12 23:06:49 +00:00
|
|
|
|
|
|
|
$project->add_app($app);
|
|
|
|
$project->add_app_version($app_version);
|
|
|
|
$project->add_app($core_app);
|
|
|
|
$project->add_app_version($core_app_version);
|
|
|
|
$project->start_assimilator = false;
|
|
|
|
$project->start_feeder = true;
|
|
|
|
$project->start_file_deleter = false;
|
|
|
|
$project->start_make_work = true;
|
2003-02-14 22:59:25 +00:00
|
|
|
$project->make_work_wu_template = "pulse_wu";
|
|
|
|
$project->make_work_result_template = "pulse_result";
|
2003-03-12 21:37:50 +00:00
|
|
|
$project->start_timeout_check = false;
|
2003-02-12 23:06:49 +00:00
|
|
|
$project->start_validate = false;
|
|
|
|
$project->shmem_key = 0x31415928;
|
|
|
|
$project->project_php_file = "project_sah.inc";
|
|
|
|
|
|
|
|
$project->install();
|
|
|
|
|
|
|
|
$work = new Work($app);
|
|
|
|
$work->wu_template = "pulse_wu";
|
|
|
|
$work->result_template = "pulse_result";
|
|
|
|
$work->redundancy = 5;
|
|
|
|
array_push($work->input_files, "03au00ab_20575_00000.wu");
|
|
|
|
$work->install($project);
|
2003-02-25 19:25:53 +00:00
|
|
|
$project->http_password("admin","mypass");
|
2003-02-12 23:06:49 +00:00
|
|
|
|
2003-02-24 21:58:23 +00:00
|
|
|
$project->start_servers();
|
2003-02-12 23:06:49 +00:00
|
|
|
?>
|