diff options
author | Tomas Mozes <hydrapolic@gmail.com> | 2016-02-09 09:51:31 +0100 |
---|---|---|
committer | Tomas Mozes <hydrapolic@gmail.com> | 2016-02-09 09:51:31 +0100 |
commit | 10df308eeb6749f215bc30d94ddc9b391f978f5a (patch) | |
tree | 01c9741e51c9ef5bcc55397c7f3a8d1ceeeab9e7 /app-admin/logstash-bin/files/logstash.initd-r2 | |
parent | app-admin/logstash-bin: drop old (diff) | |
download | gentoo-10df308eeb6749f215bc30d94ddc9b391f978f5a.tar.gz gentoo-10df308eeb6749f215bc30d94ddc9b391f978f5a.tar.bz2 gentoo-10df308eeb6749f215bc30d94ddc9b391f978f5a.zip |
app-admin/logstash-bin: version bump to 2.1.2/2.2.0
Package-Manager: portage-2.2.27
Diffstat (limited to 'app-admin/logstash-bin/files/logstash.initd-r2')
-rw-r--r-- | app-admin/logstash-bin/files/logstash.initd-r2 | 49 |
1 files changed, 0 insertions, 49 deletions
diff --git a/app-admin/logstash-bin/files/logstash.initd-r2 b/app-admin/logstash-bin/files/logstash.initd-r2 deleted file mode 100644 index e4abf59b0fa0..000000000000 --- a/app-admin/logstash-bin/files/logstash.initd-r2 +++ /dev/null @@ -1,49 +0,0 @@ -#!/sbin/openrc-run -# Copyright 1999-2015 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 - -LS_USER="${LS_USER:-root}" -LS_GROUP="${LS_GROUP:-root}" -LS_CONFDIR="${LS_CONFDIR:-/etc/logstash/conf.d}" -LS_LOGFILE="${LS_LOGFILE:-/var/log/logstash/logstash.log}" -LS_PIDFILE="${LS_PIDFILE:-/run/logstash/logstash.pid}" -LS_NICE="${LS_NICE:-19}" -LS_OPEN_FILES="${LS_OPEN_FILES:-16384}" -LS_HEAP_SIZE="${LS_HEAP_SIZE:-500m}" - -command="/opt/logstash/bin/logstash" -command_args="agent --config ${LS_CONFDIR}/*.conf --log ${LS_LOGFILE} ${LS_OPTS}" -extra_commands="checkconfig" -command_background="true" -start_stop_daemon_args="--nicelevel ${LS_NICE} \ - --user ${LS_USER}:${LS_GROUP} \ - --env LS_HEAP_SIZE=${LS_HEAP_SIZE}" -pidfile="${LS_PIDFILE}" - -depend() { - use net - after elasticsearch -} - -checkconfig() { - ebegin "Checking your configuration" - ${command} ${command_args} --configtest - eend $? "Configuration error. Please fix your configuration files." -} - -start_pre() { - checkconfig || return 1 - - checkpath -d -o "${LS_USER}":"${LS_GROUP}" -m750 "$(dirname "${LS_PIDFILE}")" - checkpath -d -o "${LS_USER}":"${LS_GROUP}" -m750 "$(dirname "${LS_LOGFILE}")" - checkpath -f -o "${LS_USER}":"${LS_GROUP}" -m640 "${LS_LOGFILE}" - - rc_ulimit="-n ${LS_OPEN_FILES}" -} - -stop() { - ebegin "Stopping logstash" - start-stop-daemon --stop \ - --pidfile="${LS_PIDFILE}" \ - --retry=TERM/5/KILL/5 -} |