summaryrefslogtreecommitdiff
path: root/nginx.logrotate
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2023-09-06 12:18:13 +0000
committerCoprDistGit <infra@openeuler.org>2023-09-06 12:18:13 +0000
commit7a547bdcd571687f3ee5a9a0b60b5d99b871de4a (patch)
tree66c24cc526176ff4ffbd83a538619ff03bbba857 /nginx.logrotate
parent66be5e6ca9d9e35e9978bd0ed1ab7f967de6c30f (diff)
automatic import of nginxopeneuler22.03_LTS
Diffstat (limited to 'nginx.logrotate')
-rw-r--r--nginx.logrotate13
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
+}
+