]> git.pld-linux.org Git - packages/arpwatch.git/commitdiff
- use %service
authorElan Ruusamäe <glen@pld-linux.org>
Fri, 24 Feb 2006 15:20:04 +0000 (15:20 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    arpwatch.spec -> 1.59

arpwatch.spec

index 676f48ad73ec4683c470b6902eb4656161d56b8a..ec99c11d44f9b6e057444f58f1eae724aa76e1e3 100644 (file)
@@ -35,8 +35,9 @@ Patch24:      %{name}-debian_26unconf_iface.patch
 BuildRequires: autoconf
 BuildRequires: automake
 BuildRequires: libpcap-devel
-Requires:      rc-scripts >= 0.2.0
+BuildRequires: rpmbuild(macros) >= 1.268
 Requires(post,preun):  /sbin/chkconfig
+Requires:      rc-scripts >= 0.2.0
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
@@ -109,17 +110,11 @@ rm -rf $RPM_BUILD_ROOT
 
 %post
 /sbin/chkconfig --add arpwatch
-if [ -f /var/lock/subsys/arpwatch ]; then
-       /etc/rc.d/init.d/arpwatch restart 1>&2
-else
-       echo "Run \"/etc/rc.d/init.d/arpwatch start\" to start arpwatch daemon."
-fi
+%service arpwatch restart "arpwatch daemon"
 
 %preun
 if [ "$1" = "0" ]; then
-       if [ -f /var/lock/subsys/arpwatch ]; then
-               /etc/rc.d/init.d/arpwatch stop 1>&2
-       fi
+       %service arpwatch stop
        /sbin/chkconfig --del arpwatch
 fi
 
This page took 0.10958 seconds and 4 git commands to generate.