diff options
author | CoprDistGit <infra@openeuler.org> | 2025-02-05 10:29:51 +0000 |
---|---|---|
committer | CoprDistGit <infra@openeuler.org> | 2025-02-05 10:29:51 +0000 |
commit | bfe4f2a9f49f4cee3efe259bd4de0be1b0e20891 (patch) | |
tree | b55d90411b0dc381a1b507583276498e2c01b9fb /nginx.logrotate | |
parent | 7fed8a26b331c9d92c55722a5c49af7fc72f8577 (diff) |
automatic import of nginx
Diffstat (limited to 'nginx.logrotate')
-rw-r--r-- | nginx.logrotate | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/nginx.logrotate b/nginx.logrotate new file mode 100644 index 0000000..f9e12c7 --- /dev/null +++ b/nginx.logrotate @@ -0,0 +1,13 @@ +/var/log/nginx/*log { + create 0664 nginx root + daily + rotate -1 + missingok + notifempty + compress + sharedscripts + postrotate + /bin/kill -USR1 `cat /run/nginx.pid 2>/dev/null` 2>/dev/null || true + endscript +} + |