Skip to content
Browse files

Merged dasrecht branch into master

  • Loading branch information...
1 parent 80aaeec commit fb510cd629564c0b8d8e4dc11be80bec17176ccf Dan committed Nov 15, 2011
Showing with 17 additions and 4 deletions.
  1. +2 −0 .gitignore
  2. +8 −0 README.md
  3. +7 −4 jackrabbit.sh
  4. 0 jmx.roles.template → jmx.role.template
View
2 .gitignore
@@ -1,3 +1,5 @@
jackrabbit-standalone*.jar
jackrabbit/
+jmx.role
+jmx.user
View
8 README.md
@@ -12,10 +12,18 @@ the PID file.
Installation
============
+ # Get the code
mkdir -p /opt/jackrabbit-startup # or wherever you want to put the code
cd /opt/jackrabbit-startup
git clone https://github.com/sixty-nine/Jackrabbit-startup-script.git
+ # Configure the script
## <edit jackrabbit.sh to configure some settings> ##
+ # Create JMX config files
+ cp jmx.role.template jmx.role
+ cp jmx.user.template jmx.user
+ chmod 0600 jmx.role
+ chmod 0600 jmx.user
+ # Create an alias to the script
ln -s /opt/jackrabbit-startup/jackrabbit.sh /etc/init.d/jackrabbit
chmod 755 /etc/init.d/jackrabbit
# on debian, register with
View
11 jackrabbit.sh
@@ -22,16 +22,19 @@
### PLEASE EDIT THESE VALUES FOR YOUR SETUP
# Directory in which jackrabbit will store local data, must be writeable
-BASEDIR=/home/dev/jackalope/jackrabbit
+BASEDIR=/home/dev/Jackrabbit-startup-script/jackrabbit
# Full filename of jackrabbit standalone .jar to run
-JACKRABBIT_JAR=$BASEDIR/jackrabbit-standalone-2.3.2.jar
+JACKRABBIT_JAR=$BASEDIR/jackrabbit-standalone-2.3.1-jackalope-SNAPSHOT.jar
# IP address for jackrabbit to listen on. you can make jackrabbit listen on all
# interfaces by using 0.0.0.0 here.
JACKRABBIT_HOST=127.0.0.1
# Port number to listen on. 8080 is default, you can use something else
JACKRABBIT_PORT=8080
# JMX-Port for monitoring
JMX_PORT=1111
+# Directory of the JMX configuration files (jmx.user & jmx.role). It defaults to
+# the script directory
+JMX_DIR=$PWD
# Java memory allocation
MEMORY="-XX:MaxPermSize=128m \
-Xmx512M \
@@ -41,8 +44,8 @@ MANAGEMENT="-Dcom.sun.management.jmxremote \
-Dcom.sun.management.jmxremote.port=$JMX_PORT \
-Dcom.sun.management.jmxremote.authenticate=true \
-Dcom.sun.management.jmxremote.ssl=false \
- -Dcom.sun.management.jmxremote.password.file=$BASEDIR/jmx.user \
- -Dcom.sun.management.jmxremote.access.file=$BASEDIR/jmx.role"
+ -Dcom.sun.management.jmxremote.password.file=$JMX_DIR/jmx.user \
+ -Dcom.sun.management.jmxremote.access.file=$JMX_DIR/jmx.role"
# Full filename to the pid file to check if jackrabbit is running
PIDFILE=$BASEDIR/jackrabbit.pid
# Full filename to the logfile to output console output of jackrabbit
View
0 jmx.roles.template → jmx.role.template
File renamed without changes.

0 comments on commit fb510cd

Please sign in to comment.
Something went wrong with that request. Please try again.