Skip to content

Commit 9cccbd2

Browse files
committedJan 1, 2012
Add rotate rules for nginx, wremonitor. Fix template variable naming.
1 parent 9921e41 commit 9cccbd2

File tree

1 file changed

+14
-4
lines changed

1 file changed

+14
-4
lines changed
 

‎wre/var/setupfiles/wre.logrotate

+14-4
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
#Rotate TGC log
22

3-
[% config.getRoot %]/var/logs/error.log /data/domains/*/logs/access.log {
3+
##nginx and access logs
4+
[% config.getRoot %]/var/logs/nginx_error.log /data/domains/*/logs/access.log {
45
notifempty
56
daily
67
rotate 7
@@ -12,16 +13,25 @@
1213
endscript
1314
}
1415

15-
16-
[% config.getRoot %]/var/logs/webgui.log {
16+
##webgui and starman
17+
[% config.getRoot %]/var/logs/webgui.log [% config.getRoot %]/var/logs/starman*.log {
1718
notifempty
1819
daily
1920
rotate 7
2021
missingok
2122
compress
2223
sharedscripts
2324
postrotate
24-
[% config.getRoot %]/prereqs/bin/perl [% config.getRoot %]/sbin/wreservice.pl --restart nginx
25+
[% config.getRoot %]/prereqs/bin/perl [% config.getRoot %]/sbin/wreservice.pl --restart starman
2526
endscript
2627
}
2728

29+
##wremonitor
30+
[% config.getRoot %]/var/logs/wremonitor.log
31+
notifempty
32+
daily
33+
rotate 7
34+
missingok
35+
compress
36+
}
37+

0 commit comments

Comments
 (0)
Please sign in to comment.