[Swift-commit] r4197 - usertools/persistent-coasters

noreply at svn.ci.uchicago.edu noreply at svn.ci.uchicago.edu
Fri Mar 18 10:29:58 CDT 2011


Author: wozniak
Date: 2011-03-18 10:29:58 -0500 (Fri, 18 Mar 2011)
New Revision: 4197

Modified:
   usertools/persistent-coasters/start-service.zsh
Log:
Whitespace


Modified: usertools/persistent-coasters/start-service.zsh
===================================================================
--- usertools/persistent-coasters/start-service.zsh	2011-03-18 15:22:10 UTC (rev 4196)
+++ usertools/persistent-coasters/start-service.zsh	2011-03-18 15:29:58 UTC (rev 4197)
@@ -24,13 +24,13 @@
 
 SWIFT_OUT=${LOGDIR}/swift.out
 
-if [[ ${WORKER_MODE} == "local" ]] 
-  then 
+if [[ ${WORKER_MODE} == "local" ]]
+then
   source workers-local.zsh
-elif [[ ${WORKER_MODE} == "ssh" ]] 
-  then
+elif [[ ${WORKER_MODE} == "ssh" ]]
+then
   source workers-ssh.zsh
-else 
+else
   print "Unknown WORKER_MODE: ${WORKER_MODE}"
   false
 fi
@@ -43,14 +43,14 @@
   LINE=()
   COUNT=0
   for COUNT in {1..3}
-   do
-   LINE=( $( grep --text "Started coaster service:" ${OUT} ) )
-   if [[ ${#LINE} == 0 ]] then
-     grep Error ${OUT} >& /dev/null && return 1
-     sleep 3
-   else
-     break
-   fi
+  do
+    LINE=( $( grep --text "Started coaster service:" ${OUT} ) )
+    if [[ ${#LINE} == 0 ]] then
+      grep Error ${OUT} >& /dev/null && return 1
+      sleep 3
+    else
+      break
+    fi
   done
   [[ ${#LINE} == 0 ]] && return 1
 
@@ -67,18 +67,18 @@
   COUNT=0
   for COUNT in {1..4}
   do
-   LINE=( $( grep "Passive queue processor" ${OUT} ) )
-   if [[ ${#LINE} == 0 ]] then
-     sleep 4
-   else
-     break
-   fi
-   if grep "Error" ${OUT} >& /dev/null
-     then
-     print "coaster-service error!" >&2
-     cat ${OUT} >&2
-     return 1
-   fi
+    LINE=( $( grep "Passive queue processor" ${OUT} ) )
+    if [[ ${#LINE} == 0 ]] then
+      sleep 4
+    else
+      break
+    fi
+    if grep "Error" ${OUT} >& /dev/null
+    then
+      print "coaster-service error!" >&2
+      cat ${OUT} >&2
+      return 1
+    fi
   done
   [[ ${#LINE} == 0 ]] && return 1
 
@@ -113,9 +113,9 @@
 sleep 1
 
 { ${SWIFT} -config swift.properties \
-           -sites.file sites.passivate.xml \
-           -tc.file tc.passivate.data \
-           passivate.swift < /dev/null >& ${SWIFT_OUT}
+  -sites.file sites.passivate.xml \
+  -tc.file tc.passivate.data \
+  passivate.swift < /dev/null >& ${SWIFT_OUT}
   exitcode "Swift failed!"
   print "Swift finished."
 } &
@@ -138,7 +138,7 @@
 
 cp sites.passivate.xml sites.xml
 print "Created user sites file: sites.xml"
-cp tc.passivate.data tc.data 
+cp tc.passivate.data tc.data
 print "Created user tc file: tc.data"
 
 exit 0




More information about the Swift-commit mailing list