From 73e397f70324b8ce52ee9acf2e058ae4f4f4f123 Mon Sep 17 00:00:00 2001 From: Karl Chen Date: Tue, 13 Jan 2004 02:47:34 +0000 Subject: [PATCH] *** empty log message *** svn path=/trunk/boinc/; revision=2866 --- sched/start | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/sched/start b/sched/start index ec6e0f936d..b316acbda0 100755 --- a/sched/start +++ b/sched/start @@ -432,18 +432,18 @@ def run_daemons(): remove_stop_trigger() for task in config.daemons: if task.host != local_hostname: - continue; + continue if task.disabled: - continue; + continue run_daemon(task) def run_tasks(): if verbose: print "Running tasks" for task in config.tasks: if task.host != local_hostname: - continue; + continue if task.disabled: - continue; + continue run_task(task) def stop_daemon(pid): @@ -528,7 +528,7 @@ def command_status(): n = 0 for task in config.daemons: if task.host != local_hostname: - continue; + continue n += 1 pid = safe_read_int(get_daemon_pid_name(task)) or 0 if not pid: @@ -553,7 +553,7 @@ def command_status(): n = 0 for task in config.tasks: if task.host != local_hostname: - continue; + continue n += 1 task_run_state = lookup_task_run_state(task) when_last_run = float(task_run_state.last_run) @@ -688,14 +688,14 @@ assign_task_defaults() apply(command) run_state.write() -if (is_main_host): +if is_main_host: other_hosts = get_host_list() for host in other_hosts: if host == local_hostname: continue - local_cmd = ' '.join(sys.argv); - remote_cmd = 'ssh '+host+' "cd '+cwd+';'+local_cmd; - if (verbose): + local_cmd = ' '.join(sys.argv) + remote_cmd = 'ssh '+host+' "cd '+cwd+';'+local_cmd + if verbose: remote_cmd += " -v" remote_cmd += '"' print 'running ', remote_cmd