summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'app-admin')
-rw-r--r--app-admin/logstash-bin/files/logstash.initd410
-rw-r--r--app-admin/logstash-bin/logstash-bin-5.1.1-r1.ebuild (renamed from app-admin/logstash-bin/logstash-bin-5.1.1.ebuild)0
2 files changed, 6 insertions, 4 deletions
diff --git a/app-admin/logstash-bin/files/logstash.initd4 b/app-admin/logstash-bin/files/logstash.initd4
index b9e9055ea779..00b732e8b8d2 100644
--- a/app-admin/logstash-bin/files/logstash.initd4
+++ b/app-admin/logstash-bin/files/logstash.initd4
@@ -54,10 +54,12 @@ start_pre() {
rc_ulimit="-n ${LS_OPEN_FILES}"
- checkpath -d -o "${LS_USER}":"${LS_GROUP}" -m750 "${LS_INSTALL_DIR}/data"
- checkpath -d -o "${LS_USER}":"${LS_GROUP}" -m750 "$(dirname "${pidfile}")"
- checkpath -d -o "${LS_USER}":"${LS_GROUP}" -m750 "${LS_LOG_DIR}"
- checkpath -f -o "${LS_USER}":"${LS_GROUP}" -m640 "${LS_LOG_DIR}/logstash-plain.log"
+ local d
+ for d in "${LS_INSTALL_DIR}/data" "$(dirname "${pidfile}")" "${LS_LOG_DIR}"; do
+ checkpath -d -o "${LS_USER}":"${LS_GROUP}" -m750 "$d"
+ chown -R "${LS_USER}":"${LS_GROUP}" "$d"
+ done
+
}
stop() {
diff --git a/app-admin/logstash-bin/logstash-bin-5.1.1.ebuild b/app-admin/logstash-bin/logstash-bin-5.1.1-r1.ebuild
index d9a0c6781cb1..d9a0c6781cb1 100644
--- a/app-admin/logstash-bin/logstash-bin-5.1.1.ebuild
+++ b/app-admin/logstash-bin/logstash-bin-5.1.1-r1.ebuild