IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 40140


Ignore:
Timestamp:
Sep 18, 2017, 8:49:36 AM (9 years ago)
Author:
eugene
Message:

send output to the screen (not /dev/null) when restarting

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tags/ipp-20170121/tools/check_system.sh

    r40139 r40140  
    290290  # set all pantasks to stop
    291291  foreach dir ($dirs)
    292     echo "setting $dir to 'reap'"
    293     echo "controller run reap" | pantasks_client -c $dir/ptolemy.rc >& /dev/null
     292    echo "setting $dir to 'stop'"
     293    echo "stop; exit 0" | pantasks_client -c $dir/ptolemy.rc
    294294  end
    295295
    296296  # set all controllers to reap, then block waiting for clear task list:
    297297  foreach dir ($dirs)
    298     echo "setting $dir to 'reap'"
    299     echo "controller run reap" | pantasks_client -c $dir/ptolemy.rc >& /dev/null
     298    echo "--- setting $dir to 'reap' ---"
     299    echo "controller run reap; exit 0" | pantasks_client -c $dir/ptolemy.rc
    300300  end
    301301
     
    304304  # block on clearing jobs from all pantasks:
    305305  foreach dir ($dirs)
    306     echo "waiting for jobs to clear on $dir"
     306    echo "--- waiting for jobs to clear on $dir ---"
    307307
    308308    # wait for at most 15 minutes (the stamp jobs may take 750 seconds to complete)
     
    310310    set Nloop = 0
    311311    while ($Nloop < 90)
    312       echo "control status -nohost -state busy" | pantasks_client -c $dir/ptolemy.rc >& $tmpfile
     312      echo "control status -nohost -state busy" | pantasks_client -c $dir/ptolemy.rc
    313313      set Njobs = `awk '($3 == "BUSY"){print $0}' $tmpfile | wc -l`
    314314      if ($Njobs == 0) break
     
    317317   
    318318    if ($Njobs > 0) then
    319       echo "WARNING : jobs are still running after 5 minutes: needs a manual check on $dir"
     319      echo "WARNING : jobs are still running after 15 minutes: needs a manual check on $dir"
    320320      exit 1
    321321    endif
Note: See TracChangeset for help on using the changeset viewer.