You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@oodt.apache.org by ma...@apache.org on 2014/07/29 21:08:52 UTC
svn commit: r1614461 - in /oodt/trunk: CHANGES.txt
mvn/archetypes/radix/src/main/resources/archetype-resources/distribution/src/main/resources/bin/oodt
Author: mattmann
Date: Tue Jul 29 19:08:52 2014
New Revision: 1614461
URL: http://svn.apache.org/r1614461
Log:
- fix for OODT-672 OODT Start script does not notify user of status contributed by asumarlidason
Modified:
oodt/trunk/CHANGES.txt
oodt/trunk/mvn/archetypes/radix/src/main/resources/archetype-resources/distribution/src/main/resources/bin/oodt
Modified: oodt/trunk/CHANGES.txt
URL: http://svn.apache.org/viewvc/oodt/trunk/CHANGES.txt?rev=1614461&r1=1614460&r2=1614461&view=diff
==============================================================================
--- oodt/trunk/CHANGES.txt (original)
+++ oodt/trunk/CHANGES.txt Tue Jul 29 19:08:52 2014
@@ -4,9 +4,11 @@ Apache OODT Change Log
Release 0.7 - Current Development
--------------------------------------------
+* OODT-672 OODT Start script does not notify user of status (asumarlidason via mattmann)
+
* OODT-721 Fix File Manager unit tests (step 1) - remove duplicate XML from test
resources (rlaidlaw)
-
+
* OODT-719 Prevent httpclient from spawning closewait tcp connections (Konstantinos Mavrommatis via lewismc)
* OODT-685 ix OODT 0.7-SNAPSHOT Jenkins nightly build on Ubuntu 1st Pass (lewismc)
Modified: oodt/trunk/mvn/archetypes/radix/src/main/resources/archetype-resources/distribution/src/main/resources/bin/oodt
URL: http://svn.apache.org/viewvc/oodt/trunk/mvn/archetypes/radix/src/main/resources/archetype-resources/distribution/src/main/resources/bin/oodt?rev=1614461&r1=1614460&r2=1614461&view=diff
==============================================================================
--- oodt/trunk/mvn/archetypes/radix/src/main/resources/archetype-resources/distribution/src/main/resources/bin/oodt (original)
+++ oodt/trunk/mvn/archetypes/radix/src/main/resources/archetype-resources/distribution/src/main/resources/bin/oodt Tue Jul 29 19:08:52 2014
@@ -100,6 +100,59 @@ if [ "$1" = "start" ]; then
exec "$WORKFLOW_HOME"/bin/"$WORKFLOW_EXEC" start "$@" >> "$OODT_OUT" 2>&1 &
exec "$RESMGR_HOME"/bin/"$RESMGR_EXEC" start "$@" >> "$OODT_OUT" 2>&1 &
exec "$OODT_BASE"/tomcat/bin/"$TOMCAT_EXEC" start "$@" >> "$OODT_OUT" 2>&1 &
+ sleep 0.2s
+# Print confirmation messages to the end user
+# FileManager
+# check if the PID file exists:
+ if [ ! -e "../filemgr/run/cas.filemgr.pid" ]
+ then
+ # no pid file was created by the process, it must have failed.
+ echo -e 'Starting OODT File Manager [' $'\e[31m' 'Failed' $'\e[00m' ']'
+
+ else
+ # pid file exists, check if the associated process is running.
+ if kill -0 `cat ../filemgr/run/cas.filemgr.pid` > /dev/null 2>&1;
+ then
+ echo -e 'Starting OODT File Manager [' $'\e[32m' 'Successful' $'\e[00m' ']'
+ else
+ echo -e 'Starting OODT File Manager [' $'\e[31m' 'Failed' $'\e[00m' ']'
+ fi
+ fi
+
+# ResourceManager
+# check if the PID file exists:
+ if [ ! -e "../resmgr/run/cas.resmgr.pid" ]
+ then
+ # no pid file was created by the process, it must have failed.
+ echo -e 'Starting OODT Resource Manager [' $'\e[31m' 'Failed' $'\e[00m' ']'
+
+ else
+ # pid file exists, check if the associated process is running.
+ if kill -0 `cat ../resmgr/run/cas.resmgr.pid` > /dev/null 2>&1;
+ then
+ echo -e 'Starting OODT Resource Manager [' $'\e[32m' 'Successful' $'\e[00m' ']'
+ else
+ echo -e 'Starting OODT Resource Manager [' $'\e[31m' 'Failed' $'\e[00m' ']'
+ fi
+ fi
+
+
+# WorkflowManager
+# check if the PID file exists:
+ if [ ! -e "../workflow/run/cas.workflow.pid" ]
+ then
+ # no pid file was created by the process, it must have failed.
+ echo -e 'Starting OODT Workflow Manager [' $'\e[31m' 'Failed' $'\e[00m' ']'
+
+ else
+ # pid file exists, check if the associated process is running.
+ if kill -0 `cat ../workflow/run/cas.workflow.pid` > /dev/null 2>&1;
+ then
+ echo -e 'Starting OODT Workflow Manager [' $'\e[32m' 'Successful' $'\e[00m' ']'
+ else
+ echo -e 'Starting OODT Workflow Manager [' $'\e[31m' 'Failed' $'\e[00m' ']'
+ fi
+ fi
elif [ "$1" = "stop" ]; then
exec "$FILEMGR_HOME"/bin/"$FILEMGR_EXEC" stop "$@" >> "$OODT_OUT" 2>&1 &
exec "$WORKFLOW_HOME"/bin/"$WORKFLOW_EXEC" stop "$@" >> "$OODT_OUT" 2>&1 &