Skip to content

Commit

Permalink
Add rotate rules for nginx, wremonitor. Fix template variable naming.
Browse files Browse the repository at this point in the history
  • Loading branch information
perlDreamer committed Jan 1, 2012
1 parent 9921e41 commit 9cccbd2
Showing 1 changed file with 14 additions and 4 deletions.
18 changes: 14 additions & 4 deletions wre/var/setupfiles/wre.logrotate
@@ -1,6 +1,7 @@
#Rotate TGC log

[% config.getRoot %]/var/logs/error.log /data/domains/*/logs/access.log {
##nginx and access logs
[% config.getRoot %]/var/logs/nginx_error.log /data/domains/*/logs/access.log {
notifempty
daily
rotate 7
Expand All @@ -12,16 +13,25 @@
endscript
}


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

##wremonitor
[% config.getRoot %]/var/logs/wremonitor.log
notifempty
daily
rotate 7
missingok
compress
}

0 comments on commit 9cccbd2

Please sign in to comment.