summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorShawn O. Pearce <sop@google.com>2009-10-01 19:06:10 -0700
committerShawn O. Pearce <sop@google.com>2009-10-01 19:06:10 -0700
commit1481fd67238185cdc44619a624a928a106d4087f (patch)
treec7cd5922ee543b79679710eaafac8d8d99b91840
parent3131241b2420969122b65085b5f58beb05bbd499 (diff)
Move the Jetty 6.x start script to our extra directory
Unpacking the script from our WAR is easier than copying and pasting from the documentation. We also need a different file for Jetty 7.x. Change-Id: I73b558bdc8f5e1fd4889eaa0ce06bf49cc660448 Signed-off-by: Shawn O. Pearce <sop@google.com>
-rw-r--r--Documentation/install.txt27
-rw-r--r--src/main/webapp/WEB-INF/extra/jetty6/gerrit-jetty.sh17
2 files changed, 23 insertions, 21 deletions
diff --git a/Documentation/install.txt b/Documentation/install.txt
index f5c7376b55..acc9b25cdd 100644
--- a/Documentation/install.txt
+++ b/Documentation/install.txt
@@ -263,27 +263,12 @@ Add the following to `'$JETTY_HOME'/etc/jetty.xml` under
<Set name="headerBufferSize">16384</Set>
====
-To start automatically when the system boots, consider a start
-script such as the following in `/etc/init.d/gerrit2-jetty`
-
-====
- #!/bin/sh
-
- export JETTY_HOST=127.0.0.1
- export JETTY_PORT=8081
- export JETTY_USER=gerrit2
- export JETTY_PID=/var/run/jetty$JETTY_PORT.pid
- export JETTY_HOME=/home/$JETTY_USER/jetty
- export JAVA_HOME=/usr/lib/jvm/java-6-sun-1.6.0.07/jre
-
- JAVA_OPTIONS=""
- JAVA_OPTIONS="$JAVA_OPTIONS -Djetty.host=$JETTY_HOST"
- export JAVA_OPTIONS
-
- C="jetty-logging jetty"
- [ -f "$JETTY_HOME/etc/jetty_sslproxy.xml" ] && C="$C jetty_sslproxy"
-
- exec $JETTY_HOME/bin/jetty.sh "$@" $C
+To start automatically when the system boots, create a start
+script and modify it for your configuration:
+
+====
+ java -jar gerrit.war --cat extra/jetty6/gerrit-jetty.sh >/etc/init.d/gerrit-jetty.sh
+ vi /etc/init.d/gerrit-jetty.sh
====
[TIP]
diff --git a/src/main/webapp/WEB-INF/extra/jetty6/gerrit-jetty.sh b/src/main/webapp/WEB-INF/extra/jetty6/gerrit-jetty.sh
new file mode 100644
index 0000000000..f8e22d952a
--- /dev/null
+++ b/src/main/webapp/WEB-INF/extra/jetty6/gerrit-jetty.sh
@@ -0,0 +1,17 @@
+#!/bin/sh
+
+export JETTY_HOST=127.0.0.1
+export JETTY_PORT=8081
+export JETTY_USER=gerrit2
+export JETTY_PID=/var/run/jetty$JETTY_PORT.pid
+export JETTY_HOME=/home/$JETTY_USER/jetty
+export JAVA_HOME=/usr/lib/jvm/java-6-sun-1.6.0.07/jre
+
+JAVA_OPTIONS=""
+JAVA_OPTIONS="$JAVA_OPTIONS -Djetty.host=$JETTY_HOST"
+export JAVA_OPTIONS
+
+C="jetty-logging jetty"
+[ -f "$JETTY_HOME/etc/jetty_sslproxy.xml" ] && C="$C jetty_sslproxy"
+
+exec $JETTY_HOME/bin/jetty.sh "$@" $C