Changed files:
nagios-nrpe.spec -> 1.23
BuildRequires: autoconf
BuildRequires: automake
BuildRequires: openssl-tools
-BuildRequires: rpmbuild(macros) >= 1.202
+BuildRequires: rpmbuild(macros) >= 1.268
Requires(post,postun): /sbin/chkconfig
Requires: nagios-common
Requires: nagios-plugins
%post
/sbin/chkconfig --add nrpe
-if [ -f /var/lock/subsys/nrpe ]; then
- /etc/rc.d/init.d/nrpe restart 1>&2
-fi
+%service nrpe restart
%preun
if [ "$1" = "0" ] ; then
- if [ -f /var/lock/subsys/nrpe ]; then
- /etc/rc.d/init.d/nrpe stop 1>&2
- fi
+ %service nrpe stop
/sbin/chkconfig --del nrpe
fi