Skip to content

Commit

Permalink
Logrotate configuration for logs.
Browse files Browse the repository at this point in the history
  • Loading branch information
perlDreamer committed Dec 31, 2011
1 parent 707ed08 commit 255ac83
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions wre/var/setupfiles/wre.logrotate
@@ -0,0 +1,27 @@
#Rotate TGC log

[% config.getRoot %]/var/logs/error.log /data/domains/*/logs/access.log {
notifempty
daily
rotate 7
missingok
compress
sharedscripts
postrotate
[% config.getRoot %]/prereqs/bin/perl [% config.getRoot %]/sbin/wreservice.pl --restart nginx
endscript
}


[% config.getRoot %]/var/logs/webgui.log {
notifempty
daily
rotate 7
missingok
compress
sharedscripts
postrotate
[% config.getRoot %]/prereqs/bin/perl [% config.getRoot %]/sbin/wreservice.pl --restart nginx
endscript
}

0 comments on commit 255ac83

Please sign in to comment.