Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

The host and port jackrabbit should listen to are now configurable

  • Loading branch information...
commit dfc889c904f64cefaf338060b03573e836f2b2bd 1 parent 099c799
Daniel Barsotti authored
Showing with 4 additions and 2 deletions.
  1. +4 −2 jackrabbit.sh
View
6 jackrabbit.sh
@@ -13,7 +13,9 @@
### YOU HAVE TO EDIT THESE VALUES !!!
BASEDIR=/home/dev/jackalope/jackrabbit
#JACKRABBIT=$BASEDIR/jackrabbit-standalone-2.2.6-SNAPSHOT.jar
-JACKRABBIT=$BASEDIR/jackrabbit-standalone-2.2.8-jackalope-SNAPSHOT.jar
+JACKRABBIT_JAR=$BASEDIR/jackrabbit-standalone-2.2.8-jackalope-SNAPSHOT.jar
+JACKRABBIT_HOST=127.0.0.1
+JACKRABBIT_PORT=8080
###
@@ -25,7 +27,7 @@ LOGFILE=$BASEDIR/jackrabbit.log
do_start() {
if [ ! -f $PIDFILE ]; then
cd $BASEDIR
- nohup java -jar $JACKRABBIT >> $LOGFILE 2>&1 & echo $! > $PIDFILE
+ nohup java -jar $JACKRABBIT_JAR -h $JACKRABBIT_HOST -p $JACKRABBIT_PORT >> $LOGFILE 2>&1 & echo $! > $PIDFILE
echo "Jackrabbit started"
else
echo "Jackrabbit is already running"
Please sign in to comment.
Something went wrong with that request. Please try again.