]> git.pld-linux.org Git - packages/nagios-nrpe.git/commitdiff
- use %service, adapterized, cosmetics
authorElan Ruusamäe <glen@pld-linux.org>
Sun, 5 Mar 2006 15:20:15 +0000 (15:20 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    nagios-nrpe.spec -> 1.23

nagios-nrpe.spec

index 7d95fb2ba359abcd3d0d1604d9cadb5b61438812..9cd254d6b1eb5f3202bb30c790f74e9a4907f0b4 100644 (file)
@@ -12,7 +12,7 @@ URL:          http://www.nagios.org/
 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
@@ -82,15 +82,11 @@ rm -rf $RPM_BUILD_ROOT
 
 %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
 
This page took 0.085189 seconds and 4 git commands to generate.