Summary(pl.UTF-8): Demon i wtyczka zdalnego wywoływania wtyczek Nagios
Name: nagios-nrpe
Version: 2.15
-Release: 6
+Release: 7
License: GPL v2
Group: Networking
Source0: http://downloads.sourceforge.net/nagios/nrpe-%{version}.tar.gz
BuildRequires: rpmbuild(macros) >= 1.647
Requires(post,preun): /sbin/chkconfig
Requires: nagios-common
-Requires: rc-scripts
+Requires: rc-scripts >= 0.4.1.26
Provides: nagios-core
Obsoletes: netsaint-nrpe
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
exit 0
fi
+pidfile=/var/run/nrpe/nrpe.pid
+
start() {
if [ -f /var/lock/subsys/nrpe ]; then
msg_already_running "Nagios NRPE daemon"
fi
msg_stopping "Nagios NRPE daemon"
- killproc --pidfile nrpe/nrpe.pid nrpe
+ killproc --pidfile $pidfile nrpe
rm -f /var/lock/subsys/nrpe
}
condrestart 7
;;
status)
- status nrpe
+ status --pidfile $pidfile nrpe
exit $?
;;
*)