net-analyzer/nrpe: remove unused files
authorMichael Mair-Keimberger <m.mairkeimberger@gmail.com>
Tue, 21 Jan 2020 06:55:58 +0000 (07:55 +0100)
committerAaron Bauman <bman@gentoo.org>
Thu, 14 May 2020 22:19:35 +0000 (18:19 -0400)
Signed-off-by: Michael Mair-Keimberger <m.mairkeimberger@gmail.com>
Closes: https://github.com/gentoo/gentoo/pull/14403
Signed-off-by: Aaron Bauman <bman@gentoo.org>
net-analyzer/nrpe/files/nrpe.init [deleted file]
net-analyzer/nrpe/files/nrpe.service [deleted file]

diff --git a/net-analyzer/nrpe/files/nrpe.init b/net-analyzer/nrpe/files/nrpe.init
deleted file mode 100644 (file)
index bb7e34e..0000000
+++ /dev/null
@@ -1,49 +0,0 @@
-#!/sbin/openrc-run
-# Copyright 1999-2014 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-
-: ${CFGFILE:=/etc/nagios/nrpe.cfg}
-
-get_config() {
-    [ -f ${CFGFILE} ] || return 1
-
-    sed -n -e 's:^[ \t]*'$1'=\([^#]\+\).*:\1:p' \
-       ${CFGFILE}
-}
-
-extra_started_commands="reload"
-
-command=/usr/libexec/${SVCNAME}
-command_args="-c ${CFGFILE} --daemon"
-pidfile=$(get_config pid_file)
-
-depend() {
-    config ${CFGFILE}
-}
-
-reload() {
-    ebegin "Reloading ${SVCNAME}"
-    kill -1 `cat ${pidfile}`
-    eend $?
-}
-
-start()
-{
-    mkdir -p $(dirname $pidfile)
-    local _background=
-    ebegin "Starting ${name:-$RC_SVCNAME}"
-    eval start-stop-daemon --start \
-        --exec $command \
-        ${procname:+--name} $procname \
-        ${pidfile:+--pidfile} $pidfile \
-        $_background $start_stop_daemon_args \
-        -- $command_args
-    if eend $? "Failed to start $RC_SVCNAME"; then
-        service_set_value "command" "${command}"
-        [ -n "${pidfile}" ] && service_set_value "pidfile" "${pidfile}"
-        [ -n "${procname}" ] && service_set_value "procname" "${procname}"
-        return 0
-    fi  
-    return 1
-}
-
diff --git a/net-analyzer/nrpe/files/nrpe.service b/net-analyzer/nrpe/files/nrpe.service
deleted file mode 100644 (file)
index f6546d7..0000000
+++ /dev/null
@@ -1,11 +0,0 @@
-[Unit]
-Description=Daemon to answer plugin requests from Nagios on remote hosts
-After=network.target
-Requires=network.target
-
-[Service]
-Type=forking
-ExecStart=/usr/libexec/nrpe -c /etc/nagios/nrpe.cfg -d
-
-[Install]
-WantedBy=multi-user.target