summarylogtreecommitdiffstats
path: root/logrotate
diff options
context:
space:
mode:
authorHaruue Icymoon2017-12-07 16:06:42 +0800
committerHaruue Icymoon2017-12-07 16:08:25 +0800
commit326f2bb2189a778d5017cf270af25124a7d07b09 (patch)
tree345e83495c10e2ce4e24a2fde48b0b4a2b612161 /logrotate
downloadaur-326f2bb2189a778d5017cf270af25124a7d07b09.tar.gz
init: nginx-mainline-openssl-weak
Signed-off-by: Haruue Icymoon <haruue@caoyue.com.cn>
Diffstat (limited to 'logrotate')
-rw-r--r--logrotate10
1 files changed, 10 insertions, 0 deletions
diff --git a/logrotate b/logrotate
new file mode 100644
index 000000000000..e0afbb927021
--- /dev/null
+++ b/logrotate
@@ -0,0 +1,10 @@
+/var/log/nginx/*log {
+ missingok
+ notifempty
+ create 640 http log
+ sharedscripts
+ compress
+ postrotate
+ test ! -r /run/nginx.pid || kill -USR1 `cat /run/nginx.pid`
+ endscript
+}