Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 598732 | Differences between
and this patch

Collapse All | Expand All

(-)a/init.d/elasticsearch (-3 / +3 lines)
Lines 41-47 export ES_GC_LOG_FILE Link Here
41
export ES_STARTUP_SLEEP_TIME
41
export ES_STARTUP_SLEEP_TIME
42
42
43
server_command="/usr/share/elasticsearch/bin/elasticsearch"
43
server_command="/usr/share/elasticsearch/bin/elasticsearch"
44
server_args="-d -p ${PIDFILE} --default.path.home=${ES_HOME} --default.path.logs=${LOG_DIR} --default.path.data=${DATA_DIR} --default.path.conf=${CONF_DIR}"
44
server_args="-d -p ${PIDFILE} -E default.path.home=${ES_HOME} -E default.path.logs=${LOG_DIR} -E default.path.data=${DATA_DIR} -E default.path.conf=${CONF_DIR}"
45
45
46
depend() {
46
depend() {
47
       use net
47
       use net
Lines 50-56 depend() { Link Here
50
start() {
50
start() {
51
       local conf
51
       local conf
52
       local conf_file
52
       local conf_file
53
       for conf in elasticsearch.yml logging.yml; do
53
       for conf in elasticsearch.yml log4j2.properties; do
54
               conf_file="${CONF_DIR}/${conf}"
54
               conf_file="${CONF_DIR}/${conf}"
55
               if [ ! -f "${conf_file}" ]; then
55
               if [ ! -f "${conf_file}" ]; then
56
                       eerror "${conf_file} must be copied into place"
56
                       eerror "${conf_file} must be copied into place"
Lines 88-94 start() { Link Here
88
               --chdir "${ES_HOME}" \
88
               --chdir "${ES_HOME}" \
89
               --user="${ES_USER}" \
89
               --user="${ES_USER}" \
90
               --pidfile="${PIDFILE}" \
90
               --pidfile="${PIDFILE}" \
91
               --exec ${server_command} -- ${server_args}
91
               --exec ${server_command} ${server_args}
92
       eend $?
92
       eend $?
93
}
93
}

Return to bug 598732