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:
parent
73b6370167
commit
0eecea29d2
@ -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
|
Wed Jul 1 20:11:18 UTC 2015 - crrodriguez@opensuse.org
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package cronie
|
# 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
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
|
13
run-crons
13
run-crons
@ -32,17 +32,8 @@
|
|||||||
# add variable to disable mail if all jobs returned 0
|
# add variable to disable mail if all jobs returned 0
|
||||||
# 2015-06-25 - jmatejek@suse.com
|
# 2015-06-25 - jmatejek@suse.com
|
||||||
# bnc#812367 support MAILFROM as cron does
|
# bnc#812367 support MAILFROM as cron does
|
||||||
#
|
# 2016-08-08 - tchvatal@suse.com
|
||||||
|
# bnc#983925 run crons even on battery
|
||||||
#
|
|
||||||
# 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
|
|
||||||
|
|
||||||
if [ -f /etc/sysconfig/cron ]; then
|
if [ -f /etc/sysconfig/cron ]; then
|
||||||
. /etc/sysconfig/cron
|
. /etc/sysconfig/cron
|
||||||
|
Loading…
Reference in New Issue
Block a user