RPATH skipped. Added testing so library. Improve support for default CCR configuratio...
[anna.git] / example / diameter / launcher / deployments / st-client / checkStatus.sh
index 7bbdb3b..3106b86 100755 (executable)
@@ -5,10 +5,16 @@ ADML_INSTANCES=`cat .st_conf_adml_instances 2>/dev/null`
 RESULT_CODE=0
 
 cd $(dirname $0)
-#[ -z "$ADML_CONNECTIONS" -o -z "$ADML_INSTANCES" ] && { echo "Miss configuration. Run ./configure.sh" ; exit 3 ; }
+if [ -z "$ADML_CONNECTIONS" -o -z "$ADML_INSTANCES" ]
+then
+  echo
+  echo "Run './configure.sh' first !"
+  echo
+  exit 3
+fi
 
 echo -n "Checking instances ... "
-ADML_INSTANCES_ALIVE=$(pgrep ADML- | wc -l)
+ADML_INSTANCES_ALIVE=$(pgrep "ADML-[0-9]" | wc -l)
 echo -n "$ADML_INSTANCES_ALIVE instances alive"
 if [ $ADML_INSTANCES_ALIVE -lt $ADML_INSTANCES ]
 then