diff options
Diffstat (limited to 'app-misc/elasticsearch/files')
-rw-r--r-- | app-misc/elasticsearch/files/elasticsearch.conf | 20 | ||||
-rw-r--r-- | app-misc/elasticsearch/files/elasticsearch.init4 | 87 | ||||
-rw-r--r-- | app-misc/elasticsearch/files/elasticsearch.init5 | 87 | ||||
-rw-r--r-- | app-misc/elasticsearch/files/elasticsearch.service4 | 11 |
4 files changed, 0 insertions, 205 deletions
diff --git a/app-misc/elasticsearch/files/elasticsearch.conf b/app-misc/elasticsearch/files/elasticsearch.conf deleted file mode 100644 index 54e3df9a82dc..000000000000 --- a/app-misc/elasticsearch/files/elasticsearch.conf +++ /dev/null @@ -1,20 +0,0 @@ -# please modify/copy -# /etc/elasticsearch/elasticsearch.in.sh.sample -# to -# /etc/elasticsearch/[instance/]elasticsearch.in.sh -# -# many variables/options are available in this file - -# ES_USER="elasticsearch:elasticsearch" -## set max fds (ulimit -n X) -# ES_MAX_FD="" - -## override elasticsearch.in.sh -# -# ES_CLASSPATH="" -# JAVA_OPTS="" -# ES_JAVA_OPTS="" -# ES_HEAP_SIZE="" -# ES_HEAP_NEWSIZE="" -# ES_DIRECT_SIZE="" -# ES_USE_IPV4="" diff --git a/app-misc/elasticsearch/files/elasticsearch.init4 b/app-misc/elasticsearch/files/elasticsearch.init4 deleted file mode 100644 index ddb5aba6ba8f..000000000000 --- a/app-misc/elasticsearch/files/elasticsearch.init4 +++ /dev/null @@ -1,87 +0,0 @@ -#!/sbin/openrc-run - -name="Elasticsearch" -description="" - -ES_USER=${ES_USER:="elasticsearch"} -ES_INSTANCE=${SVCNAME#*.} - -if [ -n "${ES_INSTANCE}" ] && [ ${SVCNAME} != "elasticsearch" ]; then - PIDFILE="/run/elasticsearch/elasticsearch.${ES_INSTANCE}.pid" - ES_BASE_PATH="/var/lib/elasticsearch/${ES_INSTANCE}" - ES_CONF_PATH="/etc/elasticsearch/${ES_INSTANCE}" - ES_LOG_PATH="/var/log/elasticsearch/${ES_INSTANCE}" -else - PIDFILE="/run/elasticsearch/elasticsearch.pid" - ES_BASE_PATH="/var/lib/elasticsearch/_default" - ES_CONF_PATH="/etc/elasticsearch" - ES_LOG_PATH="/var/log/elasticsearch/_default" -fi - -ES_DATA_PATH="${ES_BASE_PATH}/data" -ES_WORK_PATH="${ES_BASE_PATH}/work" - -export ES_INCLUDE="/usr/share/elasticsearch/bin/elasticsearch.in.sh" -export JAVA_OPTS -export ES_JAVA_OPTS -export ES_HEAP_SIZE -export ES_HEAP_NEWSIZE -export ES_DIRECT_SIZE -export ES_USE_IPV4 - -server_command="/usr/share/elasticsearch/bin/elasticsearch" -server_args=" -p ${PIDFILE} -Des.default.path.conf=\"${ES_CONF_PATH}\" -Des.default.path.data=\"${ES_DATA_PATH}\" -Des.default.path.work=\"${ES_WORK_PATH}\" -Des.default.path.logs=\"${ES_LOG_PATH}\"" - -depend() { - use net -} - -start() { - # elasticsearch -Des.config=/path/to/config/file - # elasticsearch -Des.network.host=10.0.0.4 - - [ ! -f "${ES_INCLUDE}" ] && { - eerror "${ES_INCLUDE} must be copied into place" - return 1 - } - - local conf - local conf_file - for conf in elasticsearch.yml logging.yml; do - conf_file="${ES_CONF_PATH}/${conf}" - if [ ! -f "${conf_file}" ]; then - eerror "${conf_file} must be copied into place" - return 1 - fi - done - - ebegin "Starting ${SVCNAME}" - - if [ -n "${ES_MAX_FD}" ]; then - ulimit -n ${ES_MAX_FD} - einfo "Max open filedescriptors : ${ES_MAX_FD}" - fi - - checkpath -d -o "${ES_USER}" -m750 "/var/lib/elasticsearch" - checkpath -d -o "${ES_USER}" -m750 "/var/log/elasticsearch" - checkpath -d -o "${ES_USER}" -m750 "$(dirname "${PIDFILE}")" - checkpath -d -o "${ES_USER}" -m750 "${ES_BASE_PATH}" - checkpath -d -o "${ES_USER}" -m750 "${ES_LOG_PATH}" - - start-stop-daemon --start \ - --background \ - --chdir "${ES_BASE_PATH}" \ - --user="${ES_USER}" \ - --pidfile="${PIDFILE}" \ - --exec ${server_command} -- ${server_args} - eend $? -} - -stop() { - ebegin "Stopping ${SVCNAME}" - start-stop-daemon --stop \ - --pidfile=${PIDFILE} \ - --user="${ES_USER}" \ - --retry=TERM/20/KILL/5 - eend $? -} diff --git a/app-misc/elasticsearch/files/elasticsearch.init5 b/app-misc/elasticsearch/files/elasticsearch.init5 deleted file mode 100644 index 5b1da0e27d51..000000000000 --- a/app-misc/elasticsearch/files/elasticsearch.init5 +++ /dev/null @@ -1,87 +0,0 @@ -#!/sbin/openrc-run - -name="Elasticsearch" -description="" - -ES_USER=${ES_USER:="elasticsearch"} -ES_INSTANCE=${SVCNAME#*.} - -if [ -n "${ES_INSTANCE}" ] && [ ${SVCNAME} != "elasticsearch" ]; then - PIDFILE="/run/elasticsearch/elasticsearch.${ES_INSTANCE}.pid" - ES_BASE_PATH="/var/lib/elasticsearch/${ES_INSTANCE}" - ES_CONF_PATH="/etc/elasticsearch/${ES_INSTANCE}" - ES_LOG_PATH="/var/log/elasticsearch/${ES_INSTANCE}" -else - PIDFILE="/run/elasticsearch/elasticsearch.pid" - ES_BASE_PATH="/var/lib/elasticsearch/_default" - ES_CONF_PATH="/etc/elasticsearch" - ES_LOG_PATH="/var/log/elasticsearch/_default" -fi - -ES_DATA_PATH="${ES_BASE_PATH}/data" -ES_WORK_PATH="${ES_BASE_PATH}/work" - -export ES_INCLUDE="/usr/share/elasticsearch/bin/elasticsearch.in.sh" -export JAVA_OPTS -export ES_JAVA_OPTS -export ES_HEAP_SIZE -export ES_HEAP_NEWSIZE -export ES_DIRECT_SIZE -export ES_USE_IPV4 - -server_command="/usr/share/elasticsearch/bin/elasticsearch" -server_args=" -p ${PIDFILE} -Des.default.path.conf=${ES_CONF_PATH} -Des.default.path.data=${ES_DATA_PATH} -Des.default.path.work=${ES_WORK_PATH} -Des.default.path.logs=${ES_LOG_PATH}" - -depend() { - use net -} - -start() { - # elasticsearch -Des.config=/path/to/config/file - # elasticsearch -Des.network.host=10.0.0.4 - - [ ! -f "${ES_INCLUDE}" ] && { - eerror "${ES_INCLUDE} must be copied into place" - return 1 - } - - local conf - local conf_file - for conf in elasticsearch.yml logging.yml; do - conf_file="${ES_CONF_PATH}/${conf}" - if [ ! -f "${conf_file}" ]; then - eerror "${conf_file} must be copied into place" - return 1 - fi - done - - ebegin "Starting ${SVCNAME}" - - if [ -n "${ES_MAX_FD}" ]; then - ulimit -n ${ES_MAX_FD} - einfo "Max open filedescriptors : ${ES_MAX_FD}" - fi - - checkpath -d -o "${ES_USER}" -m750 "/var/lib/elasticsearch" - checkpath -d -o "${ES_USER}" -m750 "/var/log/elasticsearch" - checkpath -d -o "${ES_USER}" -m750 "$(dirname "${PIDFILE}")" - checkpath -d -o "${ES_USER}" -m750 "${ES_BASE_PATH}" - checkpath -d -o "${ES_USER}" -m750 "${ES_LOG_PATH}" - - start-stop-daemon --start \ - --background \ - --chdir "${ES_BASE_PATH}" \ - --user="${ES_USER}" \ - --pidfile="${PIDFILE}" \ - --exec ${server_command} -- ${server_args} - eend $? -} - -stop() { - ebegin "Stopping ${SVCNAME}" - start-stop-daemon --stop \ - --pidfile=${PIDFILE} \ - --user="${ES_USER}" \ - --retry=TERM/20/KILL/5 - eend $? -} diff --git a/app-misc/elasticsearch/files/elasticsearch.service4 b/app-misc/elasticsearch/files/elasticsearch.service4 deleted file mode 100644 index 739c6f8888bf..000000000000 --- a/app-misc/elasticsearch/files/elasticsearch.service4 +++ /dev/null @@ -1,11 +0,0 @@ -[Unit] -Description=Elasticsearch -After=network.target - -[Service] -User=elasticsearch -Environment=ES_INCLUDE=/usr/share/elasticsearch/bin/elasticsearch.in.sh -ExecStart=/usr/share/elasticsearch/bin/elasticsearch -Des.default.path.conf=/etc/elasticsearch - -[Install] -WantedBy=multi-user.target |