summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPetr Vaněk <arkamar@gentoo.org>2024-02-23 12:26:24 +0100
committerPetr Vaněk <arkamar@gentoo.org>2024-02-23 13:06:09 +0100
commit7a4c2eee52031f156b965bb8d0a81d0ffa0c5494 (patch)
treeccc27a403d5bc72df6305e1f67c41b0910b16886 /app-admin
parentmedia-sound/abcmidi: bump to 2024.02.22, dropped 2024.02.19 (diff)
downloadgentoo-7a4c2eee52031f156b965bb8d0a81d0ffa0c5494.tar.gz
gentoo-7a4c2eee52031f156b965bb8d0a81d0ffa0c5494.tar.bz2
gentoo-7a4c2eee52031f156b965bb8d0a81d0ffa0c5494.zip
app-admin/filebeat: remove unused initd script
This init script was used in 5.6 relase line. Last ebuild using it was removed in commit 0770eaa0b01d ("app-admin/filebeat: drop old"). Signed-off-by: Petr Vaněk <arkamar@gentoo.org>
Diffstat (limited to 'app-admin')
-rw-r--r--app-admin/filebeat/files/filebeat.initd43
1 files changed, 0 insertions, 43 deletions
diff --git a/app-admin/filebeat/files/filebeat.initd b/app-admin/filebeat/files/filebeat.initd
deleted file mode 100644
index de4bf3ae8434..000000000000
--- a/app-admin/filebeat/files/filebeat.initd
+++ /dev/null
@@ -1,43 +0,0 @@
-#!/sbin/openrc-run
-# Copyright 1999-2019 Gentoo Authors
-# 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}"
-}