diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2020-05-30 11:44:06 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2020-05-30 11:44:06 +0100 |
commit | f516638b7fe9592837389826a6152a7e1b251c54 (patch) | |
tree | 8bfecb640b7b6403d7a3d662d923eed630033da7 /net-analyzer/nrpe/files | |
parent | 1a61119f9f7b057830e2ce0563f913ec86f282ad (diff) |
gentoo resync : 30.05.2020
Diffstat (limited to 'net-analyzer/nrpe/files')
-rw-r--r-- | net-analyzer/nrpe/files/nrpe.init | 49 | ||||
-rw-r--r-- | net-analyzer/nrpe/files/nrpe.service | 11 |
2 files changed, 0 insertions, 60 deletions
diff --git a/net-analyzer/nrpe/files/nrpe.init b/net-analyzer/nrpe/files/nrpe.init deleted file mode 100644 index bb7e34ef22e7..000000000000 --- a/net-analyzer/nrpe/files/nrpe.init +++ /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 index f6546d703cd4..000000000000 --- a/net-analyzer/nrpe/files/nrpe.service +++ /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 |