Created
February 16, 2016 14:31
-
-
Save vdel26/2783f69f3b5ac7ecf77b to your computer and use it in GitHub Desktop.
Logrotate configuration Openresty
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/opt/openresty/nginx/logs/*.log { | |
compress | |
copytruncate | |
create 0644 root root | |
delaycompress | |
missingok | |
rotate 7 | |
sharedscripts | |
postrotate | |
endscript | |
} |
i think it should be
/bin/kill -USR1 `cat /usr/local/openresty/nginx/logs/nginx.pid` 2>/dev/null 2>/dev/null || true
endscript in postscript section
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
it should be postrotate
/bin/kill -HUP
cat/usr/local/openresty/nginx/logs/nginx.pid 2>/dev/null
2>/dev/null || trueendscript in postscript section