Last change
on this file since 14727 was 14727, checked in by qq6, 16 years ago |
looking for the JRE home first then the JAVA home while starting the gs3 server
|
-
Property svn:keywords
set to
Author Date Id Revision
|
File size:
1.0 KB
|
Rev | Line | |
---|
[13235] | 1 | #!/bin/sh
|
---|
| 2 | serverlang=en
|
---|
| 3 |
|
---|
| 4 | echo "Greenstone 3 Server"
|
---|
| 5 | echo "Copyright (C) 2006, New Zealand Digital Library Project, University Of Waikato"
|
---|
| 6 | echo "This software comes with ABSOLUTELY NO WARRANTY; for details see LICENSE.txt"
|
---|
| 7 | echo "This is free software, and you are welcome to redistribute it"
|
---|
| 8 |
|
---|
| 9 | ## -------- Run the Greenstone 3 Server --------
|
---|
| 10 |
|
---|
| 11 | # This script must be run from within the directory in which it lives
|
---|
| 12 | thisdir=`pwd`
|
---|
| 13 | if [ ! -f "${thisdir}/gs3-server.sh" ]; then
|
---|
[14727] | 14 | echo "This script must be run from the directory in which it resides."
|
---|
[13235] | 15 | exit 1
|
---|
| 16 | fi
|
---|
| 17 |
|
---|
| 18 | ## ---- Determine GSDL3SRCHOME ----
|
---|
| 19 | gsdl3path=
|
---|
| 20 |
|
---|
| 21 | # Some users may set the above line manually
|
---|
[14727] | 22 | if [ -z "$gsdl3path" ]; then
|
---|
| 23 | gsdl3path=`pwd`
|
---|
[13235] | 24 | fi
|
---|
| 25 |
|
---|
[14727] | 26 | if [ -z "$GSDL3SRCHOME" ]; then
|
---|
| 27 | # Setup Greenstone3, unless it has already been done
|
---|
| 28 | pushd $gsdl3path > /dev/null
|
---|
| 29 | source gs3-setup.sh
|
---|
| 30 | popd > /dev/null
|
---|
[13235] | 31 | fi
|
---|
| 32 |
|
---|
| 33 |
|
---|
[14727] | 34 | # JRE_HOME or JAVA_HOME must be set correctly to run this program
|
---|
| 35 | if [ -n "$RUNJAVA" ]; then
|
---|
| 36 | "$RUNJAVA" -cp $CLASSPATH org.greenstone.server.Server $GSDL3SRCHOME
|
---|
[13235] | 37 | fi
|
---|
| 38 |
|
---|
Note:
See
TracBrowser
for help on using the repository browser.