← Back to team overview

dhis2-devs team mailing list archive

[Branch ~dhis2-devs-core/dhis2/trunk] Rev 1242: Added utility script for tomcat.

 

------------------------------------------------------------
revno: 1242
committer: Lars Helge Oeverland <larshelge@xxxxxxxxx>
branch nick: trunk
timestamp: Thu 2009-12-17 12:33:37 +0100
message:
  Added utility script for tomcat.
added:
  resources/util/
  resources/util/tomcat
renamed:
  dhis-live/util/script/live.sh => resources/util/live


--
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 directory 'resources/util'
=== renamed file 'dhis-live/util/script/live.sh' => 'resources/util/live'
=== added file 'resources/util/tomcat'
--- resources/util/tomcat	1970-01-01 00:00:00 +0000
+++ resources/util/tomcat	2009-12-17 11:33:37 +0000
@@ -0,0 +1,19 @@
+#!/bin/sh
+TOMCAT_LOCAL=/usr/local/tomcat
+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
+  ;;
+esac
+exit 0
+