SPECS (DEVEL): php4.spec - also use %service macro for main php mo...

glen glen at pld-linux.org
Fri Jul 15 17:43:03 CEST 2005


Author: glen                         Date: Fri Jul 15 15:43:03 2005 GMT
Module: SPECS                         Tag: DEVEL
---- Log message:
- also use %service macro for main php module package

---- Files affected:
SPECS:
   php4.spec (1.453.2.10 -> 1.453.2.11) 

---- Diffs:

================================================================
Index: SPECS/php4.spec
diff -u SPECS/php4.spec:1.453.2.10 SPECS/php4.spec:1.453.2.11
--- SPECS/php4.spec:1.453.2.10	Fri Jul 15 17:39:09 2005
+++ SPECS/php4.spec	Fri Jul 15 17:42:56 2005
@@ -1918,27 +1918,19 @@
 rm -rf $RPM_BUILD_ROOT
 
 %post -n apache1-mod_php4
-if [ -f /var/lock/subsys/apache ]; then
-	/etc/rc.d/init.d/apache restart 1>&2
-fi
+%service apache restart
 
 %postun -n apache1-mod_php4
 if [ "$1" = "0" ]; then
-	if [ -f /var/lock/subsys/apache ]; then
-		/etc/rc.d/init.d/apache restart 1>&2
-	fi
+	%service -q apache restart
 fi
 
 %post -n apache-mod_php4
-if [ -f /var/lock/subsys/httpd ]; then
-	/etc/rc.d/init.d/httpd restart 1>&2
-fi
+%service httpd restart
 
 %postun -n apache-mod_php4
 if [ "$1" = "0" ]; then
-	if [ -f /var/lock/subsys/httpd ]; then
-		/etc/rc.d/init.d/httpd restart 1>&2
-	fi
+	%service -q httpd restart
 fi
 
 %post	common -p /sbin/ldconfig
@@ -2948,6 +2940,9 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.453.2.11  2005/07/15 15:42:56  glen
+- also use %service macro for main php module package
+
 Revision 1.453.2.10  2005/07/15 15:39:09  glen
 - add conf.d into -common
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/SPECS/php4.spec?r1=1.453.2.10&r2=1.453.2.11&f=u




More information about the pld-cvs-commit mailing list