summaryrefslogtreecommitdiff
path: root/debian
diff options
context:
space:
mode:
authorRobert Ancell <robert.ancell@canonical.com>2015-10-22 16:07:32 +1300
committerRobert Ancell <robert.ancell@canonical.com>2015-10-22 16:07:32 +1300
commit4d4d2599688984c053dae2637407d9c0c9e65968 (patch)
tree60ceb5a368df86b16dafe883357992298956aafd /debian
parent50e86ea07632c556fa060208181303f16ad30481 (diff)
parent602dcab686d32f2f78cb207bb3620d6d754791e8 (diff)
downloadlightdm-4d4d2599688984c053dae2637407d9c0c9e65968.tar.gz
Use logrotate to handle files in the default log directory.
This change introduces support for log rotation using the logrotate tool for file in the default log directory (/var/log/lightdm). To support this scenario, existing system log files are not moved to *.old when starting.
Diffstat (limited to 'debian')
-rw-r--r--debian/changelog6
-rw-r--r--debian/lightdm.logrotate9
2 files changed, 14 insertions, 1 deletions
diff --git a/debian/changelog b/debian/changelog
index 36f20f84..a39bdb2d 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,12 +1,16 @@
lightdm (1.17.0-0ubuntu1) UNRELEASED; urgency=medium
* New upstream release:
- - ...
+ - Don't backup system log files to *.old when starting. Handling of these
+ log files is now left to the system (e.g., through logrotate).
* Build with multi-arch
* debian/patches/xorg-1.17.patch:
- Fix xserver-allow-tcp=true option not working with X.org 1.17
* data/apparmor/abstractions/lightdm_chromium-browser: cgroups support for
guest sessions. (LP: #1504049, LP: #1464958)
+ * debian/lightdm.logrotate:
+ - Use logrotate to handle log files placed in the default system log
+ directory (/var/log/lightdm).
-- Robert Ancell <robert.ancell@canonical.com> Mon, 12 Oct 2015 14:57:47 +0100
diff --git a/debian/lightdm.logrotate b/debian/lightdm.logrotate
new file mode 100644
index 00000000..fed4a02b
--- /dev/null
+++ b/debian/lightdm.logrotate
@@ -0,0 +1,9 @@
+/var/log/lightdm/*.log {
+ daily
+ missingok
+ rotate 7
+ compress
+ notifempty
+ maxsize 10M
+ copytruncate
+}