SPECS: horde-passwd.spec - use %service in triggers

glen glen at pld-linux.org
Sun Jan 8 21:28:12 CET 2006


Author: glen                         Date: Sun Jan  8 20:28:12 2006 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- use %service in triggers

---- Files affected:
SPECS:
   horde-passwd.spec (1.42 -> 1.43) 

---- Diffs:

================================================================
Index: SPECS/horde-passwd.spec
diff -u SPECS/horde-passwd.spec:1.42 SPECS/horde-passwd.spec:1.43
--- SPECS/horde-passwd.spec:1.42	Fri Dec  2 18:57:44 2005
+++ SPECS/horde-passwd.spec	Sun Jan  8 21:28:07 2006
@@ -2,7 +2,7 @@
 %define		_hordeapp	passwd
 #define		_snap	2005-09-10
 #define		_rc		rc1
-%define		_rel	3
+%define		_rel	3.7
 #
 %include	/usr/lib/rpm/macros.php
 Summary:	passwd - password change module for Horde
@@ -133,16 +133,12 @@
 if [ -L /etc/apache/conf.d/99_horde-%{_hordeapp}.conf ]; then
 	/usr/sbin/webapp register apache %{_webapp}
 	rm -f /etc/apache/conf.d/99_horde-%{_hordeapp}.conf
-	if [ -f /var/lock/subsys/apache ]; then
-		/etc/rc.d/init.d/apache reload 1>&2
-	fi
+	%service -q apache reload
 fi
 if [ -L /etc/httpd/httpd.conf/99_horde-%{_hordeapp}.conf ]; then
 	/usr/sbin/webapp register httpd %{_webapp}
 	rm -f /etc/httpd/httpd.conf/99_horde-%{_hordeapp}.conf
-	if [ -f /var/lock/subsys/httpd ]; then
-		/etc/rc.d/init.d/httpd reload 1>&2
-	fi
+	%sercice -q httpd reload
 fi
 
 %files
@@ -171,6 +167,9 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.43  2006/01/08 20:28:07  glen
+- use %service in triggers
+
 Revision 1.42  2005/12/02 17:57:44  glen
 - proper build macros
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/SPECS/horde-passwd.spec?r1=1.42&r2=1.43&f=u



More information about the pld-cvs-commit mailing list