logrotate script and cache dir

This commit is contained in:
Micha Glave
2009-11-04 12:11:50 +01:00
parent 226ee6b2b3
commit bde0eb835a
8 changed files with 20 additions and 268 deletions

View File

@@ -0,0 +1,11 @@
# nginx logrotate snipet for Gentoo Linux
/var/log/nginx/*.log {
rotate 52
weekly
notifempty
sharedscripts
postrotate
/etc/init.d/nginx reload > /dev/null 2>&1 || true
endscript
}