continuum-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From eveni...@apache.org
Subject svn commit: r587726 - /maven/continuum/branches/continuum-site_1.1/src/site/apt/documentation/1_1/installation/standalone.apt
Date Wed, 24 Oct 2007 00:57:11 GMT
Author: evenisse
Date: Tue Oct 23 17:57:11 2007
New Revision: 587726

URL: http://svn.apache.org/viewvc?rev=587726&view=rev
Log:
Add gentoo script
Submitted by: Hilco Wijbenga

Modified:
    maven/continuum/branches/continuum-site_1.1/src/site/apt/documentation/1_1/installation/standalone.apt

Modified: maven/continuum/branches/continuum-site_1.1/src/site/apt/documentation/1_1/installation/standalone.apt
URL: http://svn.apache.org/viewvc/maven/continuum/branches/continuum-site_1.1/src/site/apt/documentation/1_1/installation/standalone.apt?rev=587726&r1=587725&r2=587726&view=diff
==============================================================================
--- maven/continuum/branches/continuum-site_1.1/src/site/apt/documentation/1_1/installation/standalone.apt
(original)
+++ maven/continuum/branches/continuum-site_1.1/src/site/apt/documentation/1_1/installation/standalone.apt
Tue Oct 23 17:57:11 2007
@@ -104,7 +104,7 @@
 #
 # chkconfig_install.sh - install Continuum on a chkconfig-bases system
 # 
-# Author: Felipe Leme <felipeal@apache.org>
+# Author: Felipe Leme <felipeal at apache.org>
 #
 
 # figure out what's Continuum's directory
@@ -151,4 +151,60 @@
 echo "Continuum set to start on run levels 3, 4 and 5."
 echo "To start continuum now, run 'service continuum start'"
 
+------------------
+
+** {In a Gentoo system}
+
+~~ Submitted by Hilco Wijbenga
+
+    To Configure Continuum startup in a Gentoo, you can use the following script:
+
+------------------
+#!/bin/sh
+
+# chkconfig: 2345 20 80
+# description: Starts and stops continuum.
+#
+# Author: Hilco Wijbenga <hilco.wijbenga at gmail.com>
+
+# Source function library.
+. /etc/rc.d/init.d/functions
+
+function start() {
+        echo -n "Starting continuum: "
+        daemon --user apache /usr/local/continuum/bin/linux-x86-32/run.sh start > /dev/null
2>&1
+        echo_success
+        echo
+}
+
+function stop() {
+        echo -n "Stopping continuum: "
+        daemon --user apache /usr/local/continuum/bin/linux-x86-32/run.sh stop > /dev/null
2>&1
+        echo_success
+        echo
+}
+
+# See how we were called.
+case "$1" in
+        start)
+                start
+                ;;
+        stop)
+                stop
+                ;;
+        status)
+                ;;
+        restart)
+                stop
+                start
+                ;;
+        condrestart)
+                ;;
+        reload)
+                ;;
+        *)
+                echo "Usage: $0 {start|stop|status|restart|condrestart|reload}"
+                ;;
+esac
+exit $RETVAL
 ------------------



Mime
View raw message