Author: darekr                       Date: Fri Apr 13 16:16:20 2007 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- use %service

---- Files affected:
SPECS:
   pimd.spec (1.23 -> 1.24) 

---- Diffs:

================================================================
Index: SPECS/pimd.spec
diff -u SPECS/pimd.spec:1.23 SPECS/pimd.spec:1.24
--- SPECS/pimd.spec:1.23        Tue Feb 13 09:06:40 2007
+++ SPECS/pimd.spec     Fri Apr 13 18:16:14 2007
@@ -14,6 +14,7 @@
 Patch0:                %{name}-Makefile.patch
 Patch1:                %{name}-time.patch
 URL:           http://catarina.usc.edu/pim/
+BuildRequires: rpmbuild(macros) >= 1.268
 Requires(post,preun):  /sbin/chkconfig
 Requires:      rc-scripts
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
@@ -53,17 +54,11 @@
 
 %post
 /sbin/chkconfig --add pimd
-if [ -f /var/lock/subsys/pimd ]; then
-       /etc/rc.d/init.d/pimd restart >&2
-else
-       echo "Run '/etc/rc.d/init.d/pimd start' to start routing daemon." >&2
-fi
+%service pimd restart
 
 %preun
 if [ "$1" = "0" ]; then
-       if [ -f /var/lock/subsys/pimd ]; then
-               /etc/rc.d/init.d/pimd stop >&2
-       fi
+       %service pimd stop
        /sbin/chkconfig --del pimd >&2
 fi
 
@@ -80,6 +75,9 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.24  2007/04/13 16:16:14  darekr
+- use %service
+
 Revision 1.23  2007/02/13 08:06:40  glen
 - tabs in preamble
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/SPECS/pimd.spec?r1=1.23&r2=1.24&f=u

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

Reply via email to