[Fai-commit] r4406 - in people/lazyboy/rhel-install-fixes_3.1.8/examples/rhel-install-demo/files/etc: . init.d init.d/tomcat

lazyboy-guest at alioth.debian.org lazyboy-guest at alioth.debian.org
Fri Jul 6 22:36:03 UTC 2007


Author: lazyboy-guest
Date: 2007-07-06 22:36:03 +0000 (Fri, 06 Jul 2007)
New Revision: 4406

Added:
   people/lazyboy/rhel-install-fixes_3.1.8/examples/rhel-install-demo/files/etc/init.d/
   people/lazyboy/rhel-install-fixes_3.1.8/examples/rhel-install-demo/files/etc/init.d/tomcat/
   people/lazyboy/rhel-install-fixes_3.1.8/examples/rhel-install-demo/files/etc/init.d/tomcat/RHEL-DEMO-TOMCAT
Log:
add tomcat start script

Added: people/lazyboy/rhel-install-fixes_3.1.8/examples/rhel-install-demo/files/etc/init.d/tomcat/RHEL-DEMO-TOMCAT
===================================================================
--- people/lazyboy/rhel-install-fixes_3.1.8/examples/rhel-install-demo/files/etc/init.d/tomcat/RHEL-DEMO-TOMCAT	                        (rev 0)
+++ people/lazyboy/rhel-install-fixes_3.1.8/examples/rhel-install-demo/files/etc/init.d/tomcat/RHEL-DEMO-TOMCAT	2007-07-06 22:36:03 UTC (rev 4406)
@@ -0,0 +1,63 @@
+#!/bin/bash
+#
+# httpd        Startup script for the Apache HTTP Server
+#
+# chkconfig: - 90 10
+# description: Tomcat Servlet Container
+# processname: tomcat
+# config: /opt/tomcat/conf
+# config: /etc/sysconfig/tomcat
+# pidfile: /var/run/tomcat.pid
+
+# Source function library.
+. /etc/rc.d/init.d/functions
+
+if [ -f /etc/sysconfig/tomcat ]; then
+        . /etc/sysconfig/tomcat
+fi
+
+# Start httpd in the C locale by default.
+HTTPD_LANG=${HTTPD_LANG-"C"}
+
+start() {
+        echo -n $"Starting $prog: "
+        /opt/tomcat/bin/startup.sh
+}
+
+
+# When stopping httpd a delay of >10 second is required before SIGKILLing the
+# httpd parent; this gives enough time for the httpd parent to SIGKILL any
+# errant children.
+stop() {
+        echo -n $"Stopping $prog: "
+        /opt/tomcat/bin/shutdown.sh
+}
+reload() {
+    echo -n $"Reloading $prog: "
+    /opt/tomcat/bin/shutdown.sh
+    /opt/tomcat/bin/startup.sh
+}
+
+# See how we were called.
+case "$1" in
+  start)
+        start
+        ;;
+  stop)
+        stop
+        ;;
+  status)
+        status $httpd
+        RETVAL=$?
+        ;;
+  restart)
+        stop
+        start
+        ;;
+  *)
+        echo $"Usage: $prog {start|stop|restart}"
+        exit 1
+esac
+
+exit $RETVAL
+


Property changes on: people/lazyboy/rhel-install-fixes_3.1.8/examples/rhel-install-demo/files/etc/init.d/tomcat/RHEL-DEMO-TOMCAT
___________________________________________________________________
Name: svn:executable
   + *




More information about the Fai-commit mailing list