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
=== modified file 'templates/turnip-logrotate.j2'
--- templates/turnip-logrotate.j2 2015-04-26 22:33:55 +0000
+++ templates/turnip-logrotate.j2 2015-11-19 01:56:35 +0000
@@ -4,7 +4,6 @@
4 dateext4 dateext
5 delaycompress5 delaycompress
6 compress6 compress
7 notifempty
8 missingok7 missingok
9 create 0644 {{ user }} {{ group }}8 create 0644 {{ user }} {{ group }}
10 postrotate9 postrotate
@@ -18,7 +17,6 @@
18 dateext17 dateext
19 delaycompress18 delaycompress
20 compress19 compress
21 notifempty
22 missingok20 missingok
23 create 0644 {{ user }} {{ group }}21 create 0644 {{ user }} {{ group }}
24 postrotate22 postrotate
@@ -32,7 +30,6 @@
32 dateext30 dateext
33 delaycompress31 delaycompress
34 compress32 compress
35 notifempty
36 missingok33 missingok
37 create 0644 {{ user }} {{ group }}34 create 0644 {{ user }} {{ group }}
38 postrotate35 postrotate
@@ -46,7 +43,6 @@
46 dateext43 dateext
47 delaycompress44 delaycompress
48 compress45 compress
49 notifempty
50 missingok46 missingok
51 create 0644 {{ user }} {{ group }}47 create 0644 {{ user }} {{ group }}
52 postrotate48 postrotate
@@ -60,7 +56,6 @@
60 dateext56 dateext
61 delaycompress57 delaycompress
62 compress58 compress
63 notifempty
64 missingok59 missingok
65 create 0644 {{ user }} {{ group }}60 create 0644 {{ user }} {{ group }}
66 postrotate61 postrotate
@@ -74,7 +69,6 @@
74 dateext69 dateext
75 delaycompress70 delaycompress
76 compress71 compress
77 notifempty
78 missingok72 missingok
79 create 0644 {{ user }} {{ group }}73 create 0644 {{ user }} {{ group }}
80 postrotate74 postrotate

Subscribers

People subscribed via source and target branches

to all changes: