summaryrefslogtreecommitdiff
path: root/app-admin/filebeat/files
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2018-07-14 20:56:41 +0100
committerV3n3RiX <venerix@redcorelinux.org>2018-07-14 20:56:41 +0100
commitd87262dd706fec50cd150aab3e93883b6337466d (patch)
tree246b44c33ad7a57550430b0a60fa0df86a3c9e68 /app-admin/filebeat/files
parent71bc00c87bba1ce31de0dac6c3b7fd1aee6917fc (diff)
gentoo resync : 14.07.2018
Diffstat (limited to 'app-admin/filebeat/files')
-rw-r--r--app-admin/filebeat/files/filebeat.confd15
-rw-r--r--app-admin/filebeat/files/filebeat.initd43
-rw-r--r--app-admin/filebeat/files/filebeat.initd.143
3 files changed, 0 insertions, 101 deletions
diff --git a/app-admin/filebeat/files/filebeat.confd b/app-admin/filebeat/files/filebeat.confd
deleted file mode 100644
index 2fcf41aa3322..000000000000
--- a/app-admin/filebeat/files/filebeat.confd
+++ /dev/null
@@ -1,15 +0,0 @@
-# Run filebeat under this user/group
-#FILEBEAT_USER=""
-#FILEBEAT_GROUP=""
-
-# Configuration path
-#FILEBEAT_CONFIG=""
-
-# Path to data directory
-#FILEBEAT_DATADIR=""
-
-# Path to log directory
-#FILEBEAT_LOGDIR=""
-
-# Additional arguments passed to filebeat
-#FILEBEAT_OPTS=""
diff --git a/app-admin/filebeat/files/filebeat.initd b/app-admin/filebeat/files/filebeat.initd
deleted file mode 100644
index 92b8369a41d7..000000000000
--- a/app-admin/filebeat/files/filebeat.initd
+++ /dev/null
@@ -1,43 +0,0 @@
-#!/sbin/openrc-run
-# Copyright 1999-2017 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-
-FILEBEAT_USER="${FILEBEAT_USER:-root}"
-FILEBEAT_GROUP="${FILEBEAT_GROUP:-root}"
-FILEBEAT_CONFIG="${FILEBEAT_CONFIG:-/etc/filebeat/filebeat.yml}"
-FILEBEAT_DATADIR="${FILEBEAT_DATADIR:-/var/lib/filebeat}"
-FILEBEAT_LOGDIR="${FILEBEAT_LOGDIR:-/var/log/filebeat}"
-FILEBEAT_OPTS="${FILEBEAT_OPTS:-}"
-
-command="/usr/bin/filebeat"
-command_args="-c ${FILEBEAT_CONFIG} ${FILEBEAT_OPTS} -path.config $(dirname $FILEBEAT_CONFIG) \
- -path.data ${FILEBEAT_DATADIR} -path.home ${FILEBEAT_DATADIR} -path.logs ${FILEBEAT_LOGDIR}"
-command_background="true"
-command_user="${FILEBEAT_USER}:${FILEBEAT_GROUP}"
-extra_commands="checkconfig"
-pidfile="/run/filebeat.pid"
-retry="TERM/5/KILL/5"
-start_stop_daemon_args="--chdir ${FILEBEAT_DATADIR}"
-
-depend() {
- use net
- after elasticsearch
-}
-
-checkconfig() {
- if [ ! -e ${FILEBEAT_CONFIG} ]; then
- eend "Please create a configuration file at ${FILEBEAT_CONFIG}"
- return 1
- fi
-
- ebegin "Checking your configuration"
- ${command} ${command_args} -configtest
- eend $? "Configuration error. Please fix your configuration files."
-}
-
-start_pre() {
- checkconfig || return 1
-
- checkpath -d -o "${FILEBEAT_USER}":"${FILEBEAT_GROUP}" -m750 "${FILEBEAT_DATADIR}"
- checkpath -d -o "${FILEBEAT_USER}":"${FILEBEAT_GROUP}" -m750 "${FILEBEAT_LOGDIR}"
-}
diff --git a/app-admin/filebeat/files/filebeat.initd.1 b/app-admin/filebeat/files/filebeat.initd.1
deleted file mode 100644
index 2cb33ba8ebc0..000000000000
--- a/app-admin/filebeat/files/filebeat.initd.1
+++ /dev/null
@@ -1,43 +0,0 @@
-#!/sbin/openrc-run
-# Copyright 1999-2017 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-
-FILEBEAT_USER="${FILEBEAT_USER:-root}"
-FILEBEAT_GROUP="${FILEBEAT_GROUP:-root}"
-FILEBEAT_CONFIG="${FILEBEAT_CONFIG:-/etc/filebeat/filebeat.yml}"
-FILEBEAT_DATADIR="${FILEBEAT_DATADIR:-/var/lib/filebeat}"
-FILEBEAT_LOGDIR="${FILEBEAT_LOGDIR:-/var/log/filebeat}"
-FILEBEAT_OPTS="${FILEBEAT_OPTS:-}"
-
-command="/usr/bin/filebeat"
-command_args="-c ${FILEBEAT_CONFIG} ${FILEBEAT_OPTS} -path.config $(dirname $FILEBEAT_CONFIG) \
- -path.data ${FILEBEAT_DATADIR} -path.home ${FILEBEAT_DATADIR} -path.logs ${FILEBEAT_LOGDIR}"
-command_background="true"
-command_user="${FILEBEAT_USER}:${FILEBEAT_GROUP}"
-extra_commands="checkconfig"
-pidfile="/run/filebeat.pid"
-retry="TERM/5/KILL/5"
-start_stop_daemon_args="--chdir ${FILEBEAT_DATADIR}"
-
-depend() {
- use net
- after elasticsearch
-}
-
-checkconfig() {
- if [ ! -e ${FILEBEAT_CONFIG} ]; then
- eend "Please create a configuration file at ${FILEBEAT_CONFIG}"
- return 1
- fi
-
- ebegin "Checking your configuration"
- ${command} ${command_args} test config
- eend $? "Configuration error. Please fix your configuration files."
-}
-
-start_pre() {
- checkconfig || return 1
-
- checkpath -d -o "${FILEBEAT_USER}":"${FILEBEAT_GROUP}" -m750 "${FILEBEAT_DATADIR}"
- checkpath -d -o "${FILEBEAT_USER}":"${FILEBEAT_GROUP}" -m750 "${FILEBEAT_LOGDIR}"
-}