diff options
author | CoprDistGit <infra@openeuler.org> | 2024-10-31 07:11:45 +0000 |
---|---|---|
committer | CoprDistGit <infra@openeuler.org> | 2024-10-31 07:11:45 +0000 |
commit | 6c94cd3bcc5f9cae45fa80e3048d7cb395f05796 (patch) | |
tree | d912ce6e29bf07d987257bba72caf31c5473c4b6 /nginx.logrotate | |
parent | 85df9bedbac03a69d4687d8a3d75fe5e6ba2dce7 (diff) |
automatic import of nginxopeneuler24.03_LTS
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 +} + |