mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-02-17 02:14:54 +00:00
Move service wrapper support to its own repo, closes #243.
This commit is contained in:
parent
66096e97f2
commit
dea8238ced
Binary file not shown.
@ -1,16 +1,16 @@
|
||||
CLASSPATH=$CLASSPATH:$ES_HOME/lib/*:$ES_HOME/lib/sigar/*
|
||||
|
||||
if [ "x$ES_MIN_MEM" = "x" ]; then
|
||||
ES_MIN_MEM=256
|
||||
ES_MIN_MEM=256m
|
||||
fi
|
||||
if [ "x$ES_MAX_MEM" = "x" ]; then
|
||||
ES_MAX_MEM=1024
|
||||
ES_MAX_MEM=1g
|
||||
fi
|
||||
|
||||
# Arguments to pass to the JVM
|
||||
JAVA_OPTS=" \
|
||||
-Xms${ES_MIN_MEM}m \
|
||||
-Xmx${ES_MAX_MEM}m \
|
||||
-Xms${ES_MIN_MEM} \
|
||||
-Xmx${ES_MAX_MEM} \
|
||||
-Djline.enabled=true \
|
||||
-XX:+AggressiveOpts \
|
||||
-XX:+UseParNewGC \
|
||||
|
File diff suppressed because it is too large
Load Diff
Binary file not shown.
@ -1,128 +0,0 @@
|
||||
set.default.ES_HOME=<Path to ElasticSearch Home>
|
||||
set.default.ES_MIN_MEM=256
|
||||
set.default.ES_MAX_MEM=1024
|
||||
|
||||
#********************************************************************
|
||||
# Wrapper Timeout Properties
|
||||
#********************************************************************
|
||||
# How long to wait for the JVM to start (in seconds)
|
||||
wrapper.startup.timeout=300
|
||||
# How long to wait for the JVM to stop (in seconds)
|
||||
wrapper.shutdown.timeout=300
|
||||
# When a ping will timeout to consider the JVM hung (in seconds)
|
||||
wrapper.ping.timeout=300
|
||||
|
||||
#********************************************************************
|
||||
# Wrapper Java Properties
|
||||
#********************************************************************
|
||||
# Java Application
|
||||
wrapper.java.command=java
|
||||
|
||||
# Tell the Wrapper to log the full generated Java command line.
|
||||
#wrapper.java.command.loglevel=INFO
|
||||
|
||||
wrapper.java.mainclass=org.tanukisoftware.wrapper.WrapperSimpleApp
|
||||
|
||||
wrapper.working.dir=%ES_HOME%
|
||||
|
||||
# Java Classpath (include wrapper.jar) Add class path elements as
|
||||
# needed starting from 1
|
||||
wrapper.java.classpath.1=%ES_HOME%/bin/service/lib/wrapper.jar
|
||||
wrapper.java.classpath.2=%ES_HOME%/lib/*.jar
|
||||
wrapper.java.classpath.3=%ES_HOME%/lib/sigar/*.jar
|
||||
|
||||
# Java Library Path (location of Wrapper.DLL or libwrapper.so)
|
||||
wrapper.java.library.path.1=%ES_HOME%/bin/service/lib
|
||||
|
||||
# Java Bits. On applicable platforms, tells the JVM to run in 32 or 64-bit mode.
|
||||
wrapper.java.additional.auto_bits=TRUE
|
||||
|
||||
# Java Additional Parameters
|
||||
wrapper.java.additional.1=-Delasticsearch-service
|
||||
wrapper.java.additional.2=-Des-foreground=yes
|
||||
wrapper.java.additional.3=-Des.path.home=%ES_HOME%
|
||||
wrapper.java.additional.4=-Djline.enabled=true
|
||||
wrapper.java.additional.5=-XX:+AggressiveOpts
|
||||
wrapper.java.additional.6=-XX:+UseParNewGC
|
||||
wrapper.java.additional.7=-XX:+UseConcMarkSweepGC
|
||||
wrapper.java.additional.8=-XX:+CMSParallelRemarkEnabled
|
||||
wrapper.java.additional.9=-XX:+HeapDumpOnOutOfMemoryError
|
||||
|
||||
# Initial Java Heap Size (in MB)
|
||||
wrapper.java.initmemory=%ES_MIN_MEM%
|
||||
|
||||
# Maximum Java Heap Size (in MB)
|
||||
wrapper.java.maxmemory=%ES_MAX_MEM%
|
||||
|
||||
# Application parameters. Add parameters as needed starting from 1
|
||||
wrapper.app.parameter.1=org.elasticsearch.bootstrap.Bootstrap
|
||||
|
||||
#********************************************************************
|
||||
# Wrapper Logging Properties
|
||||
#********************************************************************
|
||||
# Enables Debug output from the Wrapper.
|
||||
# wrapper.debug=TRUE
|
||||
|
||||
# Format of output for the console. (See docs for formats)
|
||||
wrapper.console.format=PM
|
||||
|
||||
# Log Level for console output. (See docs for log levels)
|
||||
wrapper.console.loglevel=INFO
|
||||
|
||||
# Log file to use for wrapper output logging.
|
||||
wrapper.logfile=%ES_HOME%/work/logs/service.log
|
||||
|
||||
# Format of output for the log file. (See docs for formats)
|
||||
wrapper.logfile.format=LPTM
|
||||
|
||||
# Log Level for log file output. (See docs for log levels)
|
||||
wrapper.logfile.loglevel=INFO
|
||||
|
||||
# Maximum size that the log file will be allowed to grow to before
|
||||
# the log is rolled. Size is specified in bytes. The default value
|
||||
# of 0, disables log rolling. May abbreviate with the 'k' (kb) or
|
||||
# 'm' (mb) suffix. For example: 10m = 10 megabytes.
|
||||
wrapper.logfile.maxsize=0
|
||||
|
||||
# Maximum number of rolled log files which will be allowed before old
|
||||
# files are deleted. The default value of 0 implies no limit.
|
||||
wrapper.logfile.maxfiles=0
|
||||
|
||||
# Log Level for sys/event log output. (See docs for log levels)
|
||||
wrapper.syslog.loglevel=NONE
|
||||
|
||||
#********************************************************************
|
||||
# Wrapper General Properties
|
||||
#********************************************************************
|
||||
# Allow for the use of non-contiguous numbered properties
|
||||
wrapper.ignore_sequence_gaps=TRUE
|
||||
|
||||
# Title to use when running as a console
|
||||
wrapper.console.title=ElasticSearch
|
||||
|
||||
#********************************************************************
|
||||
# Wrapper Windows NT/2000/XP Service Properties
|
||||
#********************************************************************
|
||||
# WARNING - Do not modify any of these properties when an application
|
||||
# using this configuration file has been installed as a service.
|
||||
# Please uninstall the service before modifying this section. The
|
||||
# service can then be reinstalled.
|
||||
|
||||
# Name of the service
|
||||
wrapper.name=ElasticSearch
|
||||
|
||||
# Display name of the service
|
||||
wrapper.displayname=ElasticSearch
|
||||
|
||||
# Description of the service
|
||||
wrapper.description=Open Source, Distributed, RESTful Search Engine
|
||||
|
||||
# Service dependencies. Add dependencies as needed starting from 1
|
||||
wrapper.ntservice.dependency.1=
|
||||
|
||||
# Mode in which the service is installed. AUTO_START, DELAY_START or DEMAND_START
|
||||
wrapper.ntservice.starttype=AUTO_START
|
||||
|
||||
# Allow the service to interact with the desktop.
|
||||
wrapper.ntservice.interactive=false
|
||||
|
@ -1,4 +0,0 @@
|
||||
#! /bin/sh
|
||||
|
||||
export DIST_BITS="32"
|
||||
`dirname $0`/elasticsearch $1
|
@ -1,4 +0,0 @@
|
||||
#! /bin/sh
|
||||
|
||||
export DIST_BITS="64"
|
||||
`dirname $0`/elasticsearch $1
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user