Merge lp:~cjwatson/charms/trusty/turnip/neater-logrotate into lp:~canonical-launchpad-branches/charms/trusty/turnip/devel

Proposed by Colin Watson
Status: Merged
Merge reported by: Colin Watson
Merged at revision: not available
Proposed branch: lp:~cjwatson/charms/trusty/turnip/neater-logrotate
Merge into: lp:~canonical-launchpad-branches/charms/trusty/turnip/devel
Diff against target: 51 lines (+0/-6)
1 file modified
templates/turnip-logrotate.j2 (+0/-6)
To merge this branch: bzr merge lp:~cjwatson/charms/trusty/turnip/neater-logrotate
Reviewer Review Type Date Requested Status
William Grant code Approve
Review via email: mp+277940@code.launchpad.net

Commit message

Rotate logs even if empty.

Description of the change

On qastaging, we've ended up with packbackendserver logs back to June, which I thought was a bit weird since I only intended to keep 90 days of logs when I wrote the logrotate configuration here. I then realised that this is because qastaging is pretty quiet and so goes whole days sometimes without a request getting as far as the pack backend server. I think it would be more consistent if we rotated logs even when empty, which will cause "rotate 90" to have a stable effect rather than having a retention period that depends on service activity levels.

To post a comment you must log in.
Revision history for this message
William Grant (wgrant) :
review: Approve (code)
Revision history for this message
Colin Watson (cjwatson) wrote :

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'templates/turnip-logrotate.j2'
2--- templates/turnip-logrotate.j2 2015-04-26 22:33:55 +0000
3+++ templates/turnip-logrotate.j2 2015-11-19 01:56:35 +0000
4@@ -4,7 +4,6 @@
5 dateext
6 delaycompress
7 compress
8- notifempty
9 missingok
10 create 0644 {{ user }} {{ group }}
11 postrotate
12@@ -18,7 +17,6 @@
13 dateext
14 delaycompress
15 compress
16- notifempty
17 missingok
18 create 0644 {{ user }} {{ group }}
19 postrotate
20@@ -32,7 +30,6 @@
21 dateext
22 delaycompress
23 compress
24- notifempty
25 missingok
26 create 0644 {{ user }} {{ group }}
27 postrotate
28@@ -46,7 +43,6 @@
29 dateext
30 delaycompress
31 compress
32- notifempty
33 missingok
34 create 0644 {{ user }} {{ group }}
35 postrotate
36@@ -60,7 +56,6 @@
37 dateext
38 delaycompress
39 compress
40- notifempty
41 missingok
42 create 0644 {{ user }} {{ group }}
43 postrotate
44@@ -74,7 +69,6 @@
45 dateext
46 delaycompress
47 compress
48- notifempty
49 missingok
50 create 0644 {{ user }} {{ group }}
51 postrotate

Subscribers

People subscribed via source and target branches

to all changes: