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