*** empty log message ***

svn path=/trunk/boinc/; revision=2866
This commit is contained in:
Karl Chen 2004-01-13 02:47:34 +00:00
parent f68b897b8e
commit 73e397f703
1 changed files with 10 additions and 10 deletions

View File

@ -432,18 +432,18 @@ def run_daemons():
remove_stop_trigger() remove_stop_trigger()
for task in config.daemons: for task in config.daemons:
if task.host != local_hostname: if task.host != local_hostname:
continue; continue
if task.disabled: if task.disabled:
continue; continue
run_daemon(task) run_daemon(task)
def run_tasks(): def run_tasks():
if verbose: print "Running tasks" if verbose: print "Running tasks"
for task in config.tasks: for task in config.tasks:
if task.host != local_hostname: if task.host != local_hostname:
continue; continue
if task.disabled: if task.disabled:
continue; continue
run_task(task) run_task(task)
def stop_daemon(pid): def stop_daemon(pid):
@ -528,7 +528,7 @@ def command_status():
n = 0 n = 0
for task in config.daemons: for task in config.daemons:
if task.host != local_hostname: if task.host != local_hostname:
continue; continue
n += 1 n += 1
pid = safe_read_int(get_daemon_pid_name(task)) or 0 pid = safe_read_int(get_daemon_pid_name(task)) or 0
if not pid: if not pid:
@ -553,7 +553,7 @@ def command_status():
n = 0 n = 0
for task in config.tasks: for task in config.tasks:
if task.host != local_hostname: if task.host != local_hostname:
continue; continue
n += 1 n += 1
task_run_state = lookup_task_run_state(task) task_run_state = lookup_task_run_state(task)
when_last_run = float(task_run_state.last_run) when_last_run = float(task_run_state.last_run)
@ -688,14 +688,14 @@ assign_task_defaults()
apply(command) apply(command)
run_state.write() run_state.write()
if (is_main_host): if is_main_host:
other_hosts = get_host_list() other_hosts = get_host_list()
for host in other_hosts: for host in other_hosts:
if host == local_hostname: if host == local_hostname:
continue continue
local_cmd = ' '.join(sys.argv); local_cmd = ' '.join(sys.argv)
remote_cmd = 'ssh '+host+' "cd '+cwd+';'+local_cmd; remote_cmd = 'ssh '+host+' "cd '+cwd+';'+local_cmd
if (verbose): if verbose:
remote_cmd += " -v" remote_cmd += " -v"
remote_cmd += '"' remote_cmd += '"'
print 'running ', remote_cmd print 'running ', remote_cmd