Merge lp:~afrantzis/lxc-android-config/fix-1633108-logrotate into lp:lxc-android-config

Proposed by Alexandros Frantzis
Status: Needs review
Proposed branch: lp:~afrantzis/lxc-android-config/fix-1633108-logrotate
Merge into: lp:lxc-android-config
Diff against target: 28 lines (+6/-6)
1 file modified
etc/logrotate.d/touch-syslog (+6/-6)
To merge this branch: bzr merge lp:~afrantzis/lxc-android-config/fix-1633108-logrotate
Reviewer Review Type Date Requested Status
Brandon Schaefer (community) Approve
Review via email: mp+308393@code.launchpad.net

Commit message

Logrotate syslog and auth.log once to avoid losing useful information

Description of the change

Logrotate syslog and auth.log once to avoid losing useful information

I have halved the size limit of each log to maintain the same total maximum size the logs can occupy at any given time. Perhaps we should revisit the size contraints, though.

To post a comment you must log in.
Revision history for this message
Brandon Schaefer (brandontschaefer) wrote :

Possibly we should change the comment about not keeping files? Otherwise lgtm

review: Approve
31. By Alexandros Frantzis on 2016-10-13

Update logrotate rule comment

Revision history for this message
Alexandros Frantzis (afrantzis) wrote :

> Possibly we should change the comment about not keeping files?

Good point, fixed. Thanks!

Unmerged revisions

31. By Alexandros Frantzis on 2016-10-13

Update logrotate rule comment

30. By Alexandros Frantzis on 2016-10-13

Logrotate syslog and auth.log once to avoid losing useful information

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'etc/logrotate.d/touch-syslog'
2--- etc/logrotate.d/touch-syslog 2015-09-02 07:50:44 +0000
3+++ etc/logrotate.d/touch-syslog 2016-10-13 15:18:27 +0000
4@@ -1,8 +1,8 @@
5 /var/log/syslog {
6 # don't use time based rotation, but size-based
7- size 20M
8- # do not keep old files at all
9- rotate 0
10+ size 10M
11+ # keep one old file
12+ rotate 1
13 # don't use compression
14 nocompress
15 postrotate
16@@ -12,9 +12,9 @@
17
18 /var/log/auth.log {
19 # don't use time based rotation, but size-based
20- size 10M
21- # do not keep old files at all
22- rotate 0
23+ size 5M
24+ # keep one old file
25+ rotate 1
26 # don't use compression
27 nocompress
28 postrotate

Subscribers

People subscribed via source and target branches