ANACRON_RUN_ON_BATTERY_POWER setting does not work
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
anacron (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
Configuration of ANACRON_
/usr/share/
"By default, anacron does not run while on battery power. See /etc/default/
And, default /etc/default/
-------
# If set to "yes", start anacron even when on battery power. By
# default, the /etc/init.d/anacron script tries to avoid running
# anacron unless on AC power, so as to avoid running down the battery.
# (Things like the locate updatedb cause a lot of I/O.)
ANACRON_
-------
But this feature does not work at all, because ANACRON_
debian/init.d has below, but /etc/init/
-------
if test x"$ANACRON_
then
if test $? -eq 1
then
exit 0
fi
fi
# on_ac_power doesn't exist, on_ac_power returns 0 (ac power being used)
# or on_ac_power returns 255 (undefined, desktop machine without APM)
start-
-------
ProblemType: Bug
DistroRelease: Ubuntu 12.10
Package: anacron 2.3-19ubuntu1
ProcVersionSign
Uname: Linux 3.5.0-14-generic i686
ApportVersion: 2.5.1-0ubuntu7
Architecture: i386
Date: Thu Sep 13 23:16:30 2012
InstallationMedia: Ubuntu 11.10 "Oneiric" - Build i386 LIVE Binary 20111014-16:01
ProcEnviron:
TERM=xterm
PATH=(custom, no user)
LANG=ja_JP.utf8
SHELL=/bin/zsh
SourcePackage: anacron
UpgradeStatus: Upgraded to quantal on 2011-12-03 (285 days ago)
modified.
mtime.conffile.
Thats correct. I see the same problem.