*** empty log message ***

svn path=/trunk/boinc/; revision=3957
This commit is contained in:
Rom Walton 2004-07-28 01:26:36 +00:00
parent a28c3941bf
commit d500581e8d
3 changed files with 14 additions and 3 deletions

View File

@ -15706,3 +15706,13 @@ Daniel 2004-07-27
client/
pers_file_xfer.C
Rom July 27 2004
- Create a tmp folder off of the project root so tasks and stuff can begin execution
from there, it was the log folder but the problem with that, is now our log directories
are symbolic links to a local volume so when we try to traverse back up to the project
folder we are missing a bunch of folders.
py/boinc/
setup_project.py
sched/
start

View File

@ -366,9 +366,9 @@ class Project:
# TODO: that is a security risk; don't do this in the future - write
# req/reply files somewhere else
map(lambda dir: os.mkdir(self.dir(dir)),
[ '', 'cgi-bin', 'bin', 'upload', 'download', 'apps', self.logdir(),
[ '', 'cgi-bin', 'bin', 'templates', 'upload', 'download', 'apps', self.logdir(),
'html', 'html/cache', 'html/ops', 'html/user', 'html/project',
'html/inc', 'html/stats', 'html/user_profile',
'html/inc', 'html/stats', 'html/stats_tmp', 'html/user_profile',
'html/user_profile/images'
])
map(lambda dir: os.chmod(self.dir(dir), 0777),

View File

@ -312,7 +312,7 @@ def exec_command_string(command):
args = command.strip().split()
# set default path for program to <bin_dir>:
args[0] = os.path.realpath(os.path.join( bin_dir, args[0] ))
os.chdir(log_dir)
os.chdir(tmp_dir)
try:
if contains_shell_characters(command):
os.execl('/bin/sh', 'sh', '-c', ' '.join(args))
@ -682,6 +682,7 @@ project_dir = os.path.realpath(config.config.__dict__.get('project_dir') or
os.chdir(project_dir)
bin_dir = get_dir('bin')
cgi_bin_dir = get_dir('cgi_bin')
tmp_dir = ensure_get_dir('tmp+local_hostname')
log_dir = ensure_get_dir('log_'+local_hostname)
pid_dir = ensure_get_dir('pid_'+local_hostname)