diff options
author | CoprDistGit <infra@openeuler.org> | 2023-08-17 08:51:57 +0000 |
---|---|---|
committer | CoprDistGit <infra@openeuler.org> | 2023-08-17 08:51:57 +0000 |
commit | d6cedc42fba6982ed5db32817b597f85c722b07d (patch) | |
tree | 060a266a3068a7f15c4a9f0434ce23e743bf191b /nginx.logrotate | |
parent | aa0781b7d5a8b6170e6fe3ae1ef03055c2ffb680 (diff) |
automatic import of nginxopeneuler23.03openeuler22.03_LTS_SP2openeuler20.03
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..353da6e --- /dev/null +++ b/nginx.logrotate @@ -0,0 +1,13 @@ +/var/log/nginx/*log { + create 0664 nginx root + daily + rotate 10 + missingok + notifempty + compress + sharedscripts + postrotate + /bin/kill -USR1 `cat /run/nginx.pid 2>/dev/null` 2>/dev/null || true + endscript +} + |