]> git.pld-linux.org Git - packages/DenyHosts.git/commitdiff
- use %service
authorElan Ruusamäe <glen@pld-linux.org>
Sun, 19 Mar 2006 17:50:57 +0000 (17:50 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    DenyHosts.spec -> 1.17

DenyHosts.spec

index f9b11eb7c228bcef1d527fd54f04a6aca674ba4d..429b9a1df73122ce8a69fdac5532f90155004326 100644 (file)
@@ -14,6 +14,7 @@ URL:          http://www.denyhosts.net/
 BuildRequires: python-devel
 BuildRequires: python-modules
 BuildRequires: rpm-pythonprov
+BuildRequires: rpmbuild(macros) >= 1.268
 Requires:      python
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
@@ -64,17 +65,11 @@ rm -rf $RPM_BUILD_ROOT
 
 %post
 /sbin/chkconfig --add %{name}
-if [ -r /var/lock/subsys/DenyHosts ]; then
-       /etc/rc.d/init.d/DenyHosts restart >&2
-else
-       echo "Run \"/etc/rc.d/init.d/DenyHosts start\" to start DenyHosts."
-fi
+%service DenyHosts restart
 
 %preun
 if [ "$1" = "0" ]; then
-       if [ -r /var/lock/subsys/DenyHosts ]; then
-               /etc/rc.d/init.d/DenyHosts stop >&2
-       fi
+       %service DenyHosts stop
        /sbin/chkconfig --del %{name}
 fi
 
This page took 0.156717 seconds and 4 git commands to generate.