]> git.pld-linux.org Git - packages/nginx.git/blobdiff - nginx.logrotate
- rel 2; fix http-uwsgi-temp-path
[packages/nginx.git] / nginx.logrotate
index 59ffc4fdec41191d580fdc8e5bf6f4fe2e724103..605955cedeb626a9eb0fd9c0e435324b65d6688f 100644 (file)
@@ -1,20 +1,8 @@
 /var/log/nginx/*.log {
-       su nginx logs
        olddir /var/log/archive/nginx
        create 644 nginx nginx
        sharedscripts
        postrotate
-               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
+               /sbin/service nginx reopen-logs > /dev/null
        endscript
 }
This page took 0.068993 seconds and 4 git commands to generate.