/[pdpsoft]/trunk/nl.nikhef.ndpf.tools/when_idle/etc/init.d/when_idle
ViewVC logotype

Diff of /trunk/nl.nikhef.ndpf.tools/when_idle/etc/init.d/when_idle

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 2342 by ronalds, Fri Jun 10 10:55:05 2011 UTC revision 2343 by ronalds, Tue Jul 19 09:55:39 2011 UTC
# Line 6  PBS_MOM=pbs_mom Line 6  PBS_MOM=pbs_mom
6  PBSNODES=/usr/bin/pbsnodes  PBSNODES=/usr/bin/pbsnodes
7  WHEN_IDLE_FLAG=${WHEN_IDLE_FLAG:-"when_idle"}  WHEN_IDLE_FLAG=${WHEN_IDLE_FLAG:-"when_idle"}
8  VERBOSE=${VERBOSE:-0}  VERBOSE=${VERBOSE:-0}
9    CLEAR_DELAY=${CLEAR_DELAY:-600}
10    
11  # health check  # health check
12  if [ ! -x $PBSNODES ]; then  if [ ! -x $PBSNODES ]; then
# Line 42  else Line 43  else
43          exit 2          exit 2
44  fi  fi
45    
46  logger -p user.notice "Putting node $host back online"  # sleep in background until reconfiguration etc have finished
47  $PBSNODES -c $host -N ""  # and only then put the node back online
48    ( sleep $CLEAR_DELAY ;
49      logger -p user.notice "Putting node $host back online" ;
50      $PBSNODES -c $host -N "" ) &
51    
52  exit 0  exit 0

Legend:
Removed from v.2342  
changed lines
  Added in v.2343

grid.support@nikhef.nl
ViewVC Help
Powered by ViewVC 1.1.28