continuum-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From eveni...@apache.org
Subject svn commit: r396488 - in /maven/continuum/trunk/continuum-site/src/site: apt/guides/mini/guide-linux-boot.apt resources/scripts/linux/ resources/scripts/linux/chkconfig_install.sh
Date Mon, 24 Apr 2006 09:24:27 GMT
Author: evenisse
Date: Mon Apr 24 02:24:24 2006
New Revision: 396488

URL: http://svn.apache.org/viewcvs?rev=396488&view=rev
Log:
[CONTINUUM-655] Add chkconfig documentation

Added:
    maven/continuum/trunk/continuum-site/src/site/resources/scripts/linux/
    maven/continuum/trunk/continuum-site/src/site/resources/scripts/linux/chkconfig_install.sh
  (with props)
Modified:
    maven/continuum/trunk/continuum-site/src/site/apt/guides/mini/guide-linux-boot.apt

Modified: maven/continuum/trunk/continuum-site/src/site/apt/guides/mini/guide-linux-boot.apt
URL: http://svn.apache.org/viewcvs/maven/continuum/trunk/continuum-site/src/site/apt/guides/mini/guide-linux-boot.apt?rev=396488&r1=396487&r2=396488&view=diff
==============================================================================
--- maven/continuum/trunk/continuum-site/src/site/apt/guides/mini/guide-linux-boot.apt (original)
+++ maven/continuum/trunk/continuum-site/src/site/apt/guides/mini/guide-linux-boot.apt Mon
Apr 24 02:24:24 2006
@@ -29,6 +29,8 @@
  there is no need to write a particular startup script to add Continuum to the linux boot
process.
  All you need to do, as root, is:
 
+ * In a Debian-based system
+
 +--+
 ln -s /usr/local/continuum-[VERSION]/bin/linux/run.sh /etc/init.d/continuum
 +--+
@@ -57,4 +59,13 @@
 
  What you see is the symlinks that would be created. The above command didn't do anything
  because of the <<<-n>>> switch, remove it to get the real links created.

+
+ * In a RedHat-based system
+
+ Configuring Continuum in a RedHat-based system (like Fedora Core) is slightly different:
Instead of 
+ running update-rc.d, you need to add a new service using chkconfig. And in order to add
Continuum to chkconfig,
+ it is necessary to add some comments to the /etc/rc.d/init.d/continuum script and run a
couple of commands; these
+ tasks are automatically executed by running the chkconfig_install.sh script available {{{../../scripts/linux/chkconfig_install.sh}here}}.
+
+
 

Added: maven/continuum/trunk/continuum-site/src/site/resources/scripts/linux/chkconfig_install.sh
URL: http://svn.apache.org/viewcvs/maven/continuum/trunk/continuum-site/src/site/resources/scripts/linux/chkconfig_install.sh?rev=396488&view=auto
==============================================================================
--- maven/continuum/trunk/continuum-site/src/site/resources/scripts/linux/chkconfig_install.sh
(added)
+++ maven/continuum/trunk/continuum-site/src/site/resources/scripts/linux/chkconfig_install.sh
Mon Apr 24 02:24:24 2006
@@ -0,0 +1,51 @@
+#! /bin/sh
+#
+# chkconfig_install.sh - install Continuum on a chkconfig-bases system
+# 
+# Author: Felipe Leme <felipeal@apache.org>
+#
+
+# figure out what's Continuum's directory
+CONTINUUM_HOME=`dirname $0`
+cd ${CONTINUUM_HOME}
+CONTINUUM_HOME=`pwd`
+
+INITD_SCRIPT=/etc/rc.d/init.d/continuum
+
+if [ -f ${INITD_SCRIPT} ]
+then
+  echo "File ${INITD_SCRIPT} already exists. Please remove it and try again."
+  exit 1
+fi
+
+echo "Creating file ${INITD_SCRIPT}"  
+cat >> ${INITD_SCRIPT} <<EOF
+#! /bin/sh
+# chkconfig: 345 90 10
+# description: Maven Continuum server
+
+# uncoment to set JAVA_HOME as the value present when Continuum installed
+#export JAVA_HOME=${JAVA_HOME}
+
+if [ -z "\${JAVA_HOME}" ]
+then
+  echo "Cannot manage Continuum without variable JAVA_HOME set"
+  echo "  (try to set it on file ${INITD_SCRIPT})"
+  exit 1
+fi
+# run Continuum as root
+cd ${CONTINUUM_HOME}
+./run.sh \$*
+# run Continuum as user _continuum_user_
+#su - _continuum_user_ -c "cd ${CONTINUUM_HOME}; ./run.sh \$*"
+EOF
+chmod +x ${INITD_SCRIPT}
+
+echo "Adding Continuum to chkconfig"  
+chkconfig --add continuum
+
+echo "Enabling Continuum on chkconfig"  
+chkconfig continuum on
+echo "Continuum set to start on run levels 3, 4 and 5."
+echo "To start continuum now, run 'service continuum start'"
+

Propchange: maven/continuum/trunk/continuum-site/src/site/resources/scripts/linux/chkconfig_install.sh
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: maven/continuum/trunk/continuum-site/src/site/resources/scripts/linux/chkconfig_install.sh
------------------------------------------------------------------------------
    svn:keywords = "Author Date Id Revision"



Mime
View raw message