From fd8de35b23d36fc92f69cb4a2fe06e5058b86b19 Mon Sep 17 00:00:00 2001 From: David Anderson Date: Fri, 19 Nov 2010 18:42:44 +0000 Subject: [PATCH] - start script: don't write error message if period task is already running, and output is not a TTY (i.e., cron). Otherwise admin gets a lot of spurious emails. svn path=/trunk/boinc/; revision=22723 --- checkin_notes | 8 ++++++++ sched/start | 5 +++-- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/checkin_notes b/checkin_notes index dc88b998f4..1f847d13be 100644 --- a/checkin_notes +++ b/checkin_notes @@ -8238,3 +8238,11 @@ David 20 Nov 2010 client/ scheduler_op.cpp + +David 20 Nov 2010 + - start script: don't write error message if period task is already + running, and output is not a TTY (i.e., cron). + Otherwise admin gets a lot of spurious emails. + + sched/ + start diff --git a/sched/start b/sched/start index 624124d076..fb01cc1dd1 100755 --- a/sched/start +++ b/sched/start @@ -391,8 +391,9 @@ def run_task(task): # we don't need the full double-fork because this should finish quickly if fork() > 0: return if lock_file(get_task_lock_name(task)): - print >>sys.stderr, " Task currently running! (%s)"%task.cmd - sys.exit(1) + if verbose: + print >>sys.stderr, " Task currently running! (%s)"%task.cmd + sys.exit(0) redirect(get_task_output_name(task)) exec_command_string(task.cmd)