Accepting request 425674 from home:scarabeus_iv:branches:Base:System

- Add fix for bnc#983925 to run crons even when not on AC_POWER
  * Nowdays it does not make much sense to not run crons when on
    battery and actually it can even confuse people

OBS-URL: https://build.opensuse.org/request/show/425674
OBS-URL: https://build.opensuse.org/package/show/Base:System/cronie?expand=0&rev=149
This commit is contained in:
Marcus Meissner 2016-09-09 10:55:54 +00:00 committed by Git OBS Bridge
parent 73b6370167
commit 0eecea29d2
3 changed files with 10 additions and 12 deletions

View File

@ -1,3 +1,10 @@
-------------------------------------------------------------------
Thu Sep 8 10:24:43 UTC 2016 - tchvatal@suse.com
- Add fix for bnc#983925 to run crons even when not on AC_POWER
* Nowdays it does not make much sense to not run crons when on
battery and actually it can even confuse people
-------------------------------------------------------------------
Wed Jul 1 20:11:18 UTC 2015 - crrodriguez@opensuse.org

View File

@ -1,7 +1,7 @@
#
# spec file for package cronie
#
# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed

View File

@ -32,17 +32,8 @@
# add variable to disable mail if all jobs returned 0
# 2015-06-25 - jmatejek@suse.com
# bnc#812367 support MAILFROM as cron does
#
#
# Don't run jobs on laptops, that are AC-offline
#
if test -x /usr/bin/on_ac_power ; then
on_ac_power -q
if [ "$?" = "1" ]; then
exit 0
fi
fi
# 2016-08-08 - tchvatal@suse.com
# bnc#983925 run crons even on battery
if [ -f /etc/sysconfig/cron ]; then
. /etc/sysconfig/cron