diff options
author | 4679 | 2016-03-01 08:50:34 +0800 |
---|---|---|
committer | 4679 | 2016-03-01 08:50:34 +0800 |
commit | 97b7fdffaf404392ed3e881a46a1d4265e862dd3 (patch) | |
tree | bcdeea7f26ff5d613461b9bae221f33cc0c64c2b /nginx.logrotate | |
download | aur-97b7fdffaf404392ed3e881a46a1d4265e862dd3.tar.gz |
1.9.12
Diffstat (limited to 'nginx.logrotate')
-rw-r--r-- | nginx.logrotate | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/nginx.logrotate b/nginx.logrotate new file mode 100644 index 000000000000..e4dddfc528ee --- /dev/null +++ b/nginx.logrotate @@ -0,0 +1,8 @@ + /var/log/nginx/*log { + daily + create 640 http log + compress + postrotate + [ ! -f /run/nginx.pid ] || kill -USR1 `cat /run/nginx.pid` + endscript + } |