dhis2-devs team mailing list archive
-
dhis2-devs team
-
Mailing list archive
-
Message #05816
[Branch ~dhis2-devs-core/dhis2/trunk] Rev 1833: Minor fix
------------------------------------------------------------
revno: 1833
committer: Lars <larshelg@larshelg-laptop>
branch nick: trunk
timestamp: Mon 2010-05-10 19:55:03 +0200
message:
Minor fix
added:
resources/util/tomcat
--
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
=== added file 'resources/util/tomcat'
--- resources/util/tomcat 1970-01-01 00:00:00 +0000
+++ resources/util/tomcat 2010-05-10 17:55:03 +0000
@@ -0,0 +1,28 @@
+#!/bin/sh
+
+TOMCAT_LOCAL=~/dev/lib/tomcat
+DHIS2_SOURCE_HOME=~/dev/src/dhis2
+
+case $1 in
+start)
+ ${TOMCAT_LOCAL}/bin/startup.sh
+ ;;
+stop)
+ ${TOMCAT_LOCAL}/bin/shutdown.sh
+ ;;
+restart)
+ ${TOMCAT_LOCAL}/bin/startup.sh
+ ${TOMCAT_LOCAL}/bin/shutdown.sh
+ ;;
+log)
+ tail -f ${TOMCAT_LOCAL}/logs/catalina.out
+ ;;
+update)
+ sudo rm -rf ${TOMCAT_LOCAL}/webapps/dhis
+ sudo rm ${TOMCAT_LOCAL}/webapps/dhis.war
+ sudo cp ${DHIS2_SOURCE_HOME}/dhis-2/dhis-web/dhis-web-portal/target/dhis.war ${TOMCAT_LOCAL}/webapps/
+ echo Tomcat updated with latest WAR from src code
+ ;;
+esac
+exit 0
+