]> git.pld-linux.org Git - packages/wccpd.git/commitdiff
- use %service
authorElan Ruusamäe <glen@pld-linux.org>
Mon, 13 Mar 2006 23:14:32 +0000 (23:14 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    wccpd.spec -> 1.20

wccpd.spec

index 8abd2cacf60d322be31e1ff3a23a7393ab01b5c7..f9cb6ac894baf60c59c1dbfb82f5c09a0abe2f4b 100644 (file)
@@ -12,6 +12,7 @@ Source2:      %{name}.sysconfig
 URL:           http://wccpd.sourceforge.net/
 BuildRequires: autoconf
 BuildRequires: automake
+BuildRequires: rpmbuild(macros) >= 1.268
 Requires(post,preun):  rc-scripts >= 0.2.0
 Requires:      /sbin/chkconfig
 Requires:      bc
@@ -60,17 +61,11 @@ rm -rf $RPM_BUILD_ROOT
 
 %post
 /sbin/chkconfig --add wccpd
-if [ -f /var/lock/subsys/wccpd ]; then
-       /etc/rc.d/init.d/wccpd restart 1>&2
-else
-       echo "Run \"/etc/rc.d/init.d/wccpd start\" to start wccpd daemon."
-fi
+%service wccpd restart "wccpd daemon"
 
 %preun
 if [ "$1" = "0" ]; then
-       if [ -f /var/lock/subsys/wccpd ]; then
-               /etc/rc.d/init.d/wccpd stop 1>&2
-       fi
+       %service wccpd stop
        /sbin/chkconfig --del wccpd
 fi
 
This page took 0.039794 seconds and 4 git commands to generate.