Advertisement
Guest User

Untitled

a guest
Jan 17th, 2012
56
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.57 KB | None | 0 0
  1. #!/bin/bash
  2. #set -xv
  3.  
  4. # script to start the solr engine using jetty
  5. FOSWIKI_ROOT=/usr/local/foswiki
  6. SOLRHOME=/usr/local/foswiki/solr
  7.  
  8. # configure section
  9. test -z $FOSWIKI_ROOT && FOSWIKI_ROOT=~/foswiki/trunk/core
  10.  
  11. # directory where the solr home and the jetty engine is in
  12. #SOLRHOME=$1
  13. test -z $SOLRHOME && SOLRHOME=$FOSWIKI_ROOT/solr-run
  14.  
  15. test -d $SOLRHOME || {
  16. echo "ERROR can't find a solr home at $SOLRHOME"
  17. exit 1
  18. }
  19.  
  20. cd $SOLRHOME || {
  21. echo "ERROR can't change directory to $SOLRHOME"
  22. exit 2
  23. }
  24.  
  25. nohup java -jar start.jar >/dev/null &
  26.  
  27. exit 0
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement