]> git.pld-linux.org Git - packages/nginx.git/blobdiff - nginx.logrotate
- nginx.logrotate should reload both nginx-light and nginx-standard
[packages/nginx.git] / nginx.logrotate
index f705d46f5a295e3c21f96b7ccca8447bea7cf0b2..725a01c6eeaa517f2db4ae3e3ce8c2c5cd98067b 100644 (file)
@@ -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
 }
This page took 0.033218 seconds and 4 git commands to generate.