Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- #set -xv
- # script to start the solr engine using jetty
- FOSWIKI_ROOT=/usr/local/foswiki
- SOLRHOME=/usr/local/foswiki/solr
- # configure section
- test -z $FOSWIKI_ROOT && FOSWIKI_ROOT=~/foswiki/trunk/core
- # directory where the solr home and the jetty engine is in
- #SOLRHOME=$1
- test -z $SOLRHOME && SOLRHOME=$FOSWIKI_ROOT/solr-run
- test -d $SOLRHOME || {
- echo "ERROR can't find a solr home at $SOLRHOME"
- exit 1
- }
- cd $SOLRHOME || {
- echo "ERROR can't change directory to $SOLRHOME"
- exit 2
- }
- nohup java -jar start.jar >/dev/null &
- exit 0
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement