must define BOINC_SHMEM_KEY

svn path=/trunk/boinc/; revision=500
This commit is contained in:
David Anderson 2002-10-15 21:55:48 +00:00
parent 3d562a6c3c
commit 6c8bd0642f
2 changed files with 3 additions and 2 deletions

View File

@ -160,6 +160,8 @@ setenv BOINC_KEY_DIR /home/david/boinc_keys
# path of some pre-generated security keys # path of some pre-generated security keys
setenv BOINC_PLATFORM i686-pc-linux-gnu setenv BOINC_PLATFORM i686-pc-linux-gnu
# platform name of this machine # platform name of this machine
setenv BOINC_SHMEM_KEY 0x3abc1234
# shared-memory key; must be less than 2^31
</pre> </pre>
<h4>1.5) Example script</h4> <h4>1.5) Example script</h4>

View File

@ -113,8 +113,7 @@ class Project {
$this->plat_names = array(); $this->plat_names = array();
$this->db_passwd = ""; $this->db_passwd = "";
$this->generate_keys = false; $this->generate_keys = false;
$this->shmem_key = "0xbeefacafe"; $this->shmem_key = get_env_var("BOINC_SHMEM_KEY");
//$this->shmem_key = "0x" . rand(0,6) . rand(0,9) . rand(0,9) . rand(0,9) . rand(0,9) . rand(0,9) . rand(0,9) . rand(0,9);
$this->resource_share = 1; $this->resource_share = 1;
} }