SPECS: nginx.spec - more cleanup

glen glen at pld-linux.org
Sat Dec 1 19:30:27 CET 2007


Author: glen                         Date: Sat Dec  1 18:30:27 2007 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- more cleanup

---- Files affected:
SPECS:
   nginx.spec (1.71 -> 1.72) 

---- Diffs:

================================================================
Index: SPECS/nginx.spec
diff -u SPECS/nginx.spec:1.71 SPECS/nginx.spec:1.72
--- SPECS/nginx.spec:1.71	Sat Dec  1 19:28:17 2007
+++ SPECS/nginx.spec	Sat Dec  1 19:30:22 2007
@@ -444,11 +444,9 @@
 		chmod 644 /var/log/%{name}/nginx-standard_$a
 	fi
 done
-if [ "$1" = "1" ]; then
-	/sbin/chkconfig --add %{name}-standard
-	%service %{name}-standard restart
-fi
-echo "Notice: deamon is now using \"/etc/nginx/nginx-standard.conf\" file"
+/sbin/chkconfig --add %{name}-standard
+%service %{name}-standard restart
+echo 'NOTE: daemon is now using "/etc/nginx/nginx-standard.conf" as config.'
 
 %post light
 for a in access.log error.log; do
@@ -458,11 +456,9 @@
 		chmod 644 /var/log/%{name}/nginx-light_$a
 	fi
 done
-if [ "$1" = "1" ]; then
-	/sbin/chkconfig --add %{name}-light
-	%service %{name}-light restart
-fi
-echo "Notice: deamon is now using \"/etc/nginx/nginx-light.conf\" file"
+/sbin/chkconfig --add %{name}-light
+%service %{name}-light restart
+echo 'NOTE: daemon is now using "/etc/nginx/nginx-light.conf" file'
 
 %post perl
 for a in access.log error.log; do
@@ -472,11 +468,9 @@
 		chmod 644 /var/log/%{name}/nginx-perl_$a
 	fi
 done
-if [ "$1" = "1" ]; then
-	/sbin/chkconfig --add %{name}-perl
-	%service %{name}-perl restart
-fi
-echo "Notice: deamon is now using \"/etc/nginx/nginx-perl.conf\" file"
+/sbin/chkconfig --add %{name}-perl
+%service %{name}-perl restart
+echo 'NOTE: daemon is now using "/etc/nginx/nginx-perl.conf" file'
 
 %post mail
 for a in access.log error.log; do
@@ -486,11 +480,9 @@
 		chmod 644 /var/log/%{name}/nginx-mail_$a
 	fi
 done
-if [ "$1" = "1" ]; then
-	/sbin/chkconfig --add %{name}-mail
-	%service %{name}-mail restart
-fi
-echo "Notice: deamon is now using \"/etc/nginx/nginx-mail.conf\" file"
+/sbin/chkconfig --add %{name}-mail
+%service %{name}-mail restart
+echo 'NOTE: daemon is now using "/etc/nginx/nginx-mail.conf" file'
 
 %preun standard
 if [ "$1" = "0" ];then
@@ -597,6 +589,9 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.72  2007-12-01 18:30:22  glen
+- more cleanup
+
 Revision 1.71  2007-12-01 18:28:17  glen
 - %service cleanup (it already includes lockfile check)
 
================================================================

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



More information about the pld-cvs-commit mailing list