- 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
This commit is contained in:
David Anderson 2010-11-19 18:42:44 +00:00
parent b179bf37d0
commit fd8de35b23
2 changed files with 11 additions and 2 deletions

View File

@ -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

View File

@ -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)