On Thu, Sep 10, 2009 at 04:19:15AM -0000, Kevin Hunter wrote:
> One issue for me is the fact that I use my laptop's battery a LOT. The
> cron job for this isn't currently smart enough to realize that I'm on a
> battery and not run that job.
I thought we fixed that a while back - can you attach your
/etc/cron.daily/mlocate? Mine has this fragment:
if which on_ac_power >/dev/null 2>&1; then
ON_BATTERY=0
on_ac_power >/dev/null 2>&1 || ON_BATTERY=$?
if [ "$ON_BATTERY" -eq 1 ]; then
echo >&2 "System on battery power, not running updatedb."
exit 1
fi
fi
--
updatedb should be weekly, not daily
https://bugs.launchpad.net/bugs/271272
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs