PPSS now reports if items have failed

This commit is contained in:
louwrentius 2011-08-20 20:57:54 +00:00
parent ed4c0bf554
commit 836378eda8
1 changed files with 10 additions and 10 deletions

20
ppss
View File

@ -769,7 +769,7 @@ process_arguments () {
echo "" echo ""
echo "$SCRIPT_NAME version $SCRIPT_VERSION" echo "$SCRIPT_NAME version $SCRIPT_VERSION"
echo "" echo ""
exit 0 ;; exit "$GLOBAL_ITEMS_COUNTER ;;
* ) * )
showusage_short showusage_short
@ -2788,7 +2788,7 @@ main () {
done done
fi fi
cleanup cleanup
exit 0 exit "$GLOBAL_ITEMS_COUNTER
;; ;;
config ) config )
LOGFILE=/dev/null LOGFILE=/dev/null
@ -2797,7 +2797,7 @@ main () {
add_var_to_config PPSS_LOCAL_TMPDIR "$PPSS_LOCAL_TMPDIR" add_var_to_config PPSS_LOCAL_TMPDIR "$PPSS_LOCAL_TMPDIR"
add_var_to_config PPSS_LOCAL_OUTPUT "$PPSS_LOCAL_OUTPUT" add_var_to_config PPSS_LOCAL_OUTPUT "$PPSS_LOCAL_OUTPUT"
cleanup cleanup
exit 0 exit "$GLOBAL_ITEMS_COUNTER
;; ;;
stop ) stop )
@ -2806,7 +2806,7 @@ main () {
log DSPLY "Stopping PPSS on all nodes." log DSPLY "Stopping PPSS on all nodes."
exec_cmd "touch $STOP_SIGNAL" exec_cmd "touch $STOP_SIGNAL"
cleanup cleanup
exit 0 exit "$GLOBAL_ITEMS_COUNTER
;; ;;
pause ) pause )
LOGFILE=/dev/null LOGFILE=/dev/null
@ -2814,7 +2814,7 @@ main () {
log DSPLY "Pausing PPSS on all nodes." log DSPLY "Pausing PPSS on all nodes."
exec_cmd "touch $PAUSE_SIGNAL" exec_cmd "touch $PAUSE_SIGNAL"
cleanup cleanup
exit 0 exit "$GLOBAL_ITEMS_COUNTER
;; ;;
continue ) continue )
LOGFILE=/dev/null LOGFILE=/dev/null
@ -2830,7 +2830,7 @@ main () {
exec_cmd "rm -f $PAUSE_SIGNAL" exec_cmd "rm -f $PAUSE_SIGNAL"
fi fi
cleanup cleanup
exit 0 exit "$GLOBAL_ITEMS_COUNTER
;; ;;
deploy ) deploy )
LOGFILE=ppss-deploy.txt LOGFILE=ppss-deploy.txt
@ -2839,14 +2839,14 @@ main () {
deploy_ppss deploy_ppss
wait wait
cleanup cleanup
exit 0 exit "$GLOBAL_ITEMS_COUNTER
;; ;;
status ) status )
LOGFILE=/dev/null LOGFILE=/dev/null
display_header display_header
test_server test_server
show_status show_status
exit 0 exit "$GLOBAL_ITEMS_COUNTER
;; ;;
erase ) erase )
LOGFILE=/dev/null LOGFILE=/dev/null
@ -2854,7 +2854,7 @@ main () {
log DSPLY "Erasing PPSS from all nodes." log DSPLY "Erasing PPSS from all nodes."
erase_ppss erase_ppss
cleanup cleanup
exit 0 exit "$GLOBAL_ITEMS_COUNTER
;; ;;
kill ) kill )
LOGFILE=/dev/null LOGFILE=/dev/null
@ -2863,7 +2863,7 @@ main () {
kill "$x" kill "$x"
done done
cleanup cleanup
exit 0 exit "$GLOBAL_ITEMS_COUNTER
;; ;;
* ) * )