From 0fa22a87a30cf9b4a9f0a01c584f9ef0ac4f974567aa4faa5418cc4a87ae1f50 Mon Sep 17 00:00:00 2001 From: Stephan Kulow Date: Fri, 4 Apr 2014 14:49:56 +0000 Subject: [PATCH] Accepting request 228918 from home:elvigia:branches:Base:System - Also, avoid logrotate unit activation when the system is on battery power. OBS-URL: https://build.opensuse.org/request/show/228918 OBS-URL: https://build.opensuse.org/package/show/Base:System/logrotate?expand=0&rev=37 --- logrotate.changes | 6 ++++++ logrotate.service | 1 + 2 files changed, 7 insertions(+) diff --git a/logrotate.changes b/logrotate.changes index 96842c7..98b8ec4 100644 --- a/logrotate.changes +++ b/logrotate.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Thu Apr 3 17:16:40 UTC 2014 - crrodriguez@opensuse.org + +- Also, avoid logrotate unit activation when the system is + on battery power. + ------------------------------------------------------------------- Thu Apr 3 14:10:21 UTC 2014 - crrodriguez@opensuse.org diff --git a/logrotate.service b/logrotate.service index 097940d..100abf1 100644 --- a/logrotate.service +++ b/logrotate.service @@ -1,6 +1,7 @@ [Unit] Description=Rotate log files Documentation=man:logrotate(8) man:logrotate.conf(5) +ConditionACPower=true [Service] Type=oneshot