Red Hat Bugzilla – Bug 249586
prelink should not run when system is running on battery
Last modified: 2009-09-21 17:37:56 EDT
Description of problem:
prelink is quite hard disk and CPU insensitive -- as updating the cache
regularly is a nice to have, but not crucial task (at least afaik) I'd say the
cron job should only run if the system is running on AC power.
Thus I think a simple check for existence of /usr/bin/on_ac_power, running it,
checking its return code and aborting if running on battery would be a nice
addition to the cron script. I'm willing to write something up and testing it in
case you indicate to agree with the idea and such a patch in general.
That's business of anacron/crond, there are many other cron jobs that shouldn't
be running when on batteries and requiring each to do it on its own is a bad
(In reply to comment #1)
> That's business of anacron/crond, there are many other cron jobs that shouldn't
> be running when on batteries and requiring each to do it on its own is a bad
I see the point -- but for some other cron jobs it might be important to run
even when on battery.
*** This bug has been marked as a duplicate of 190268 ***