Author: adwol                        Date: Sun Nov 27 21:13:37 2011 GMT
Module: packages                      Tag: HEAD
---- Log message:
- nginx.logrotate should reload both nginx-light and nginx-standard
  since these could be installed at the same time

---- Files affected:
packages/nginx:
   nginx.logrotate (1.2 -> 1.3) 

---- Diffs:

================================================================
Index: packages/nginx/nginx.logrotate
diff -u packages/nginx/nginx.logrotate:1.2 packages/nginx/nginx.logrotate:1.3
--- packages/nginx/nginx.logrotate:1.2  Sat Sep  8 12:13:41 2007
+++ packages/nginx/nginx.logrotate      Sun Nov 27 22:13:32 2011
@@ -3,6 +3,11 @@
        create 644 nginx nginx
        sharedscripts
        postrotate
-               /sbin/service nginx graceful > /dev/null
+               if [ -x /etc/rc.d/init.d/nginx-light ] ; then
+                       /sbin/service nginx-light graceful > /dev/null
+               fi
+               if [ -x /etc/rc.d/init.d/nginx-standard ] ; then
+                       /sbin/service nginx-standard graceful > /dev/null
+               fi
        endscript
 }
================================================================

---- CVS-web:
    
http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/nginx/nginx.logrotate?r1=1.2&r2=1.3&f=u

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

Reply via email to