]> git.pld-linux.org Git - packages/nginx.git/blobdiff - nginx.logrotate
example on how to disable old ssl proto and leave tls only
[packages/nginx.git] / nginx.logrotate
index f705d46f5a295e3c21f96b7ccca8447bea7cf0b2..de1f30dcc456835af6ccbaf525735a5e43fb647c 100644 (file)
@@ -3,6 +3,17 @@
        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
+               if [ -x /etc/rc.d/init.d/nginx-mail ] ; then
+                       /sbin/service nginx-mail graceful > /dev/null
+               fi
+               if [ -x /etc/rc.d/init.d/nginx-perl ] ; then
+                       /sbin/service nginx-perl graceful > /dev/null
+               fi
        endscript
 }
This page took 0.024411 seconds and 4 git commands to generate.