mirror of https://github.com/BOINC/boinc.git
- 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:
parent
b179bf37d0
commit
fd8de35b23
|
@ -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
|
||||
|
|
|
@ -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)
|
||||
|
||||
|
|
Loading…
Reference in New Issue