Skip to content
Permalink
Browse files

Add rotate rules for nginx, wremonitor. Fix template variable naming.

  • Loading branch information...
perlDreamer committed Jan 1, 2012
1 parent 9921e41 commit 9cccbd2bcbe541a9b826ec1ec3f289dcab71c63d
Showing with 14 additions and 4 deletions.
  1. +14 −4 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
@@ -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.
You can’t perform that action at this time.