Author: glen                         Date: Wed Nov 28 21:25:11 2007 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- use %service

---- Files affected:
SPECS:
   mdadm.spec (1.70 -> 1.71) 

---- Diffs:

================================================================
Index: SPECS/mdadm.spec
diff -u SPECS/mdadm.spec:1.70 SPECS/mdadm.spec:1.71
--- SPECS/mdadm.spec:1.70       Fri Oct 19 18:49:48 2007
+++ SPECS/mdadm.spec    Wed Nov 28 22:25:06 2007
@@ -26,8 +26,10 @@
 %endif
 Requires:      %{name}-initrd = %{epoch}:%{version}-%{release}
 %endif
+BuildRequires: rpmbuild(macros) >= 1.268
 Requires(post,preun):  /sbin/chkconfig
 Requires:      /sbin/chkconfig
+Requires:      rc-scripts >= 0.4.0.20
 Obsoletes:     mdctl
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
@@ -122,17 +124,11 @@
 
 %post
 /sbin/chkconfig --add %{name}
-if [ -f /var/lock/subsys/mdadm ]; then
-       /etc/rc.d/init.d/mdadm restart 1>&2
-else
-       echo "Run \"/etc/rc.d/init.d/mdadm start\" to start RAID monitoring."
-fi
+%service mdadm restart "RAID monitoring"
 
 %preun
 if [ "$1" = "0" ]; then
-       if [ -f /var/lock/subsys/mdadm ]; then
-               /etc/rc.d/init.d/mdadm stop 1>&2
-       fi
+       %service mdadm stop
        /sbin/chkconfig --del mdadm
 fi
 
@@ -158,6 +154,9 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.71  2007-11-28 21:25:06  glen
+- use %service
+
 Revision 1.70  2007-10-19 16:49:48  areq
 - 2.6.4
 
================================================================

---- CVS-web:
    
http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/SPECS/mdadm.spec?r1=1.70&r2=1.71&f=u

_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to