← Back to team overview

dhis2-devs team mailing list archive

[Branch ~dhis2-devs-core/dhis2/trunk] Rev 11308: Added a small delay to allow for shutdown before deploying and restarting

 

------------------------------------------------------------
revno: 11308
committer: Bob Jolliffe <bobjolliffe@xxxxxxxxx>
branch nick: dhis2
timestamp: Tue 2013-07-02 16:54:50 +0100
message:
  Added a small delay to allow for shutdown before deploying and restarting
modified:
  tools/dhis2-tools-deb/pkg/usr/bin/dhis2-deploy-war


--
lp:dhis2
https://code.launchpad.net/~dhis2-devs-core/dhis2/trunk

Your team DHIS 2 developers is subscribed to branch lp:dhis2.
To unsubscribe from this branch go to https://code.launchpad.net/~dhis2-devs-core/dhis2/trunk/+edit-subscription
=== modified file 'tools/dhis2-tools-deb/pkg/usr/bin/dhis2-deploy-war'
--- tools/dhis2-tools-deb/pkg/usr/bin/dhis2-deploy-war	2013-05-29 11:52:03 +0000
+++ tools/dhis2-tools-deb/pkg/usr/bin/dhis2-deploy-war	2013-07-02 15:54:50 +0000
@@ -51,6 +51,9 @@
 unzip -tq $TEMPWAR || { echo "Corrupt war file: $TEMPWAR"; exit 1; }
 
 dhis2-shutdown $INSTANCE 2>/dev/null || { echo $INSTANCE not running; } 
+# give it a chance to shutdown
+sleep 3
+
 # clean out existing webapp
 sudo -u $INSTANCE rm -rf /var/lib/dhis2/$INSTANCE/webapps/$INSTANCE 1>/dev/null 2>&1 || { echo "No $INSTANCE webapps"; exit 1; } 
 sudo -u $INSTANCE cp $TEMPWAR $TARGET