Changeset 30792 for trunk/pstamp/scripts/pstampstopfaulted
- Timestamp:
- Mar 4, 2011, 12:22:41 PM (15 years ago)
- File:
-
- 1 edited
-
trunk/pstamp/scripts/pstampstopfaulted (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/pstamp/scripts/pstampstopfaulted
r29428 r30792 1 #!/bin/bash 2 # 3 # script executed by the task pstamp.stopfaulted to stop proceessing of jobs 4 # and dependents that have fault_count >= some maximum value. That value is expected 5 # to be passed in as an argument otherwise the default in pstamptool is used 6 # All arguments are passed to pstamptool 1 7 2 # script executed by the task pstamp.stopfaulted to stop proceessing of jobs 3 # and dependents that have faulted 5 or more times 4 # all arguments to this script are passed to pstamptool 5 6 # 25 is PSTAMP_NOT_AVAILABLE 8 # note: 25 is PSTAMP_NOT_AVAILABLE 7 9 fault_code=25 8 fault_count=39 10 10 11 date 11 12 echo stopping faulted dependent jobs 12 pstamptool -stopdependentjob -set_fault $fault_code -fault_count $fault_count$*13 pstamptool -stopdependentjob -set_fault $fault_code $* 13 14 14 15 echo stopping faulted jobs 15 pstamptool -updatejob -state run -set_state stop -set_fault $fault_code -fault_count $fault_count$*16 pstamptool -updatejob -state run -set_state stop -set_fault $fault_code $*
Note:
See TracChangeset
for help on using the changeset viewer.
