root/branches/douglm/deployment/indexer/shellscr/resources/bwrun.sh

Revision 2320 (checked in by douglm, 4 years ago)

Renamed bwcrawler to indexer. Seems to have disturbed svn

Line 
1 #!/bin/sh
2
3 # Run the bedework indexer program
4
5 # JAVA_HOME needs to be defined
6
7 cp=.:./classes:./resources
8
9 for i in lib/*
10   do
11     cp=$cp:$i
12 done
13
14 # Need a temp dir for hibernate cache
15 TEMPDIR="./temp"
16 mkdir $TEMPDIR
17
18 RUNCMD="$JAVA_HOME/bin/java -Djava.io.tmpdir="$TEMPDIR" -cp $cp org.bedework.indexer.BwIndexApp"
19
20 APPNAME=indexer
21
22
23 case "$1" in
24   reindex)
25     echo $RUNCMD -appname $APPNAME reindex $2 $3 $4 $5 $6 $7 $8 $9
26     $RUNCMD -appname $APPNAME reindex $2 $3 $4 $5 $6 $7 $8 $9
27     ;;
28   start)
29     echo $RUNCMD -appname $APPNAME start $2 $3 $4 $5 $6 $7 $8 $9
30     $RUNCMD -appname $APPNAME start $2 $3 $4 $5 $6 $7 $8 $9
31     ;;
32   *)
33     echo $" "
34     echo $"Usage: "
35     echo $"  $0 reindex [(-ndebug | -debug)] "
36     echo $"     Reindex the system then process queue events"
37     echo $"  $0 start [(-ndebug | -debug)] "
38     echo $"     Process queue events"
39     echo $" "
40 esac
41
Note: See TracBrowser for help on using the browser.