diff options
author | CoprDistGit <infra@openeuler.org> | 2024-10-31 06:17:43 +0000 |
---|---|---|
committer | CoprDistGit <infra@openeuler.org> | 2024-10-31 06:17:43 +0000 |
commit | 52fca73c39f946126c28a26d1e9a65ff8ad77c60 (patch) | |
tree | 9423cda98fc554382d1058e11a8703b99543ea5e /nginx.logrotate | |
parent | ae5fab25e91049a7ce2f9bc0c842977150f4fdcd (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..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 +} + |