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

noreply at svn.ci.uchicago.edu noreply at svn.ci.uchicago.edu
Wed Jan 12 13:34:07 CST 2011


Author: wozniak
Date: 2011-01-12 13:34:07 -0600 (Wed, 12 Jan 2011)
New Revision: 3964

Modified:
   usertools/persistent-coasters/run.zsh
Log:
Correct TOOLS location and add notes


Modified: usertools/persistent-coasters/run.zsh
===================================================================
--- usertools/persistent-coasters/run.zsh	2011-01-12 17:57:55 UTC (rev 3963)
+++ usertools/persistent-coasters/run.zsh	2011-01-12 19:34:07 UTC (rev 3964)
@@ -1,12 +1,15 @@
 #!/bin/zsh
 
+# If you get "Could not get coasters service" the
+# service may already be running on SERVICE_PORT
+
 # Process management is incomplete here, check for
 # processes with ps
 
 set -x
 
-APP=$( cd $( dirname $0 ) ; /bin/pwd )
-TOOLS=${APP}/../tools
+PC=$( cd $( dirname $0 ) ; /bin/pwd )
+TOOLS=${PC} # In the future this might be ${SWIFT_HOME}/tools
 source ${TOOLS}/helpers.zsh
 [[ $? != 0 ]] && print "Could not load helpers.zsh!" && exit 1
 
@@ -38,6 +41,7 @@
    do
    LINE=( $( grep --text "Started coaster service:" ${OUT} ) )
    if [[ ${#LINE} == 0 ]] then
+     grep Error ${OUT} >& /dev/null && return 1
      sleep 3
    else
      break




More information about the Swift-commit mailing list