|
|
@ -5,6 +5,10 @@ LOGFILE="yacy.log"
|
|
|
|
PIDFILE="yacy.pid"
|
|
|
|
PIDFILE="yacy.pid"
|
|
|
|
OS="`uname`"
|
|
|
|
OS="`uname`"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#get javastart args
|
|
|
|
|
|
|
|
JAVA_ARGS="-server -XX:+UseAdaptiveSizePolicy";
|
|
|
|
|
|
|
|
#JAVA_ARGS="-verbose:gc -XX:+PrintGCTimeStamps -XX:+PrintGCDetails $JAVA_ARGS";
|
|
|
|
|
|
|
|
|
|
|
|
#check if OS is Sun Solaris or one of the OpenSolaris distributions and use different version of id if necessary
|
|
|
|
#check if OS is Sun Solaris or one of the OpenSolaris distributions and use different version of id if necessary
|
|
|
|
if [ $OS = "SunOS" ]
|
|
|
|
if [ $OS = "SunOS" ]
|
|
|
|
then
|
|
|
|
then
|
|
|
@ -67,6 +71,8 @@ for option in $options;do
|
|
|
|
;;
|
|
|
|
;;
|
|
|
|
-l|--logging)
|
|
|
|
-l|--logging)
|
|
|
|
LOGGING=1
|
|
|
|
LOGGING=1
|
|
|
|
|
|
|
|
# enable asserts
|
|
|
|
|
|
|
|
JAVA_ARGS="$JAVA_ARGS -ea"
|
|
|
|
if [ $DEBUG -eq 1 ];then
|
|
|
|
if [ $DEBUG -eq 1 ];then
|
|
|
|
echo "can not combine -l and -d"
|
|
|
|
echo "can not combine -l and -d"
|
|
|
|
exit 1;
|
|
|
|
exit 1;
|
|
|
@ -74,6 +80,8 @@ for option in $options;do
|
|
|
|
;;
|
|
|
|
;;
|
|
|
|
-d|--debug)
|
|
|
|
-d|--debug)
|
|
|
|
DEBUG=1
|
|
|
|
DEBUG=1
|
|
|
|
|
|
|
|
# enable asserts
|
|
|
|
|
|
|
|
JAVA_ARGS="$JAVA_ARGS -ea"
|
|
|
|
if [ $LOGGING -eq 1 ];then
|
|
|
|
if [ $LOGGING -eq 1 ];then
|
|
|
|
echo "can not combine -l and -d"
|
|
|
|
echo "can not combine -l and -d"
|
|
|
|
exit 1;
|
|
|
|
exit 1;
|
|
|
@ -98,10 +106,6 @@ done
|
|
|
|
|
|
|
|
|
|
|
|
#echo $options;exit 0 #DEBUG for getopts
|
|
|
|
#echo $options;exit 0 #DEBUG for getopts
|
|
|
|
|
|
|
|
|
|
|
|
#get javastart args
|
|
|
|
|
|
|
|
JAVA_ARGS="-server -XX:+UseAdaptiveSizePolicy";
|
|
|
|
|
|
|
|
#JAVA_ARGS="-verbose:gc -XX:+PrintGCTimeStamps -XX:+PrintGCDetails $JAVA_ARGS";
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#check if Linux system supports large memory pages or if OS is Solaris which
|
|
|
|
#check if Linux system supports large memory pages or if OS is Solaris which
|
|
|
|
#supports large memory pages since version 9
|
|
|
|
#supports large memory pages since version 9
|
|
|
|
#(according to http://java.sun.com/javase/technologies/hotspot/largememory.jsp)
|
|
|
|
#(according to http://java.sun.com/javase/technologies/hotspot/largememory.jsp)
|
|
|
|