Skip to content
Permalink
Browse files

Logrotate configuration for logs.

  • Loading branch information...
perlDreamer committed Dec 31, 2011
1 parent 707ed08 commit 255ac838c2009ee0ef4b01f2052c810291bd17f0
Showing with 27 additions and 0 deletions.
  1. +27 −0 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.
You can’t perform that action at this time.