SPECS: php-fcgi-init.spec - use %service - updated init script and...

glen glen at pld-linux.org
Tue Mar 14 17:44:24 CET 2006


Author: glen                         Date: Tue Mar 14 16:44:23 2006 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- use %service
- updated init script and config

---- Files affected:
SPECS:
   php-fcgi-init.spec (1.5 -> 1.6) 

---- Diffs:

================================================================
Index: SPECS/php-fcgi-init.spec
diff -u SPECS/php-fcgi-init.spec:1.5 SPECS/php-fcgi-init.spec:1.6
--- SPECS/php-fcgi-init.spec:1.5	Tue Dec 13 15:37:23 2005
+++ SPECS/php-fcgi-init.spec	Tue Mar 14 17:44:18 2006
@@ -3,11 +3,12 @@
 Summary(pl):	Skrypt do uruchamiania i zatrzymywania procesów FastCGI PHP
 Name:		php-fcgi-init
 Version:	0.1
-Release:	1
+Release:	2
 License:	BSD-like
 Group:		Networking/Daemons
 Source0:	php-fcgi.init
 Source1:	php-fcgi.sysconfig
+BuildRequires:	rpmbuild(macros) >= 1.268
 Requires(post,preun):	/sbin/chkconfig
 Requires:	php-fcgi
 Requires:	rc-scripts
@@ -35,17 +36,11 @@
 
 %post
 /sbin/chkconfig --add php-fcgi
-if [ -f /var/lock/subsys/php-fcgi ]; then
-	/etc/rc.d/init.d/php-fcgi restart 1>&2
-else
-	echo "Run \"/etc/rc.d/init.d/php-fcgi start\" to start PHP FastCGI."
-fi
+%service php-fcgi restart "PHP FastCGI"
 
 %preun
 if [ "$1" = "0" ]; then
-	if [ -f /var/lock/subsys/php-fcgi ]; then
-		/etc/rc.d/init.d/php-fcgi stop 1>&2
-	fi
+	%service php-fcgi stop
 	/sbin/chkconfig --del php-fcgi
 fi
 
@@ -60,6 +55,10 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.6  2006/03/14 16:44:18  glen
+- use %service
+- updated init script and config
+
 Revision 1.5  2005/12/13 14:37:23  glen
 - adapterized (sorted %verify flags)
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/SPECS/php-fcgi-init.spec?r1=1.5&r2=1.6&f=u



More information about the pld-cvs-commit mailing list