David 25 Apr 2007

- fixes #126 - generate cronjob file in make_project

    tools/
        make_project

svn path=/trunk/boinc/; revision=12480
This commit is contained in:
David Anderson 2007-04-25 20:38:01 +00:00
parent 4cb19153f0
commit bd06f5ae09
2 changed files with 17 additions and 2 deletions

View File

@ -3997,3 +3997,9 @@ David 25 Apr 2007
client/ client/
work_fetch.C work_fetch.C
David 25 Apr 2007
- fixes #126 - generate cronjob file in make_project
tools/
make_project

View File

@ -299,6 +299,14 @@ print >>open(httpd_conf_template_filename,'w'), '''
</Directory> </Directory>
''' %locals() ''' %locals()
cronjob_filename = os.path.join(
options.project_root,
project_shortname+'.cronjob'
)
print >>open(cronjob_filename,'w'), '''
0,5,10,15,20,25,30,35,40,45,50,55 * * * * %(proot)s/bin/start --cron
''' %locals()
print '''Done installing files. print '''Done installing files.
Steps to complete installation: Steps to complete installation:
@ -310,11 +318,12 @@ Steps to complete installation:
(path to httpd.conf varies) (path to httpd.conf varies)
2. Add to crontab (as %(USER)s) 2. Add to crontab (as %(USER)s)
(If cron cannot run "start", try using a helper script to set PATH and
PYTHONPATH)
0,5,10,15,20,25,30,35,40,45,50,55 * * * * %(proot)s/bin/start --cron 0,5,10,15,20,25,30,35,40,45,50,55 * * * * %(proot)s/bin/start --cron
(If cron cannot run "start", try using a helper script to set PATH and
PYTHONPATH)
3. The project is configured with a test application. 3. The project is configured with a test application.
To install this application (recommended) run: To install this application (recommended) run:
cd %(proot)s cd %(proot)s