Bug 249586 - prelink should not run when system is running on battery
Summary: prelink should not run when system is running on battery
Keywords:
Status: CLOSED DUPLICATE of bug 190268
Alias: None
Product: Fedora
Classification: Fedora
Component: anacron
Version: rawhide
Hardware: All
OS: Linux
low
low
Target Milestone: ---
Assignee: Marcela Mašláňová
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2007-07-25 16:03 UTC by Thorsten Leemhuis
Modified: 2009-09-21 21:37 UTC (History)
0 users

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2007-07-30 14:26:35 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Thorsten Leemhuis 2007-07-25 16:03:54 UTC
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.

Comment 1 Jakub Jelinek 2007-07-25 18:55:15 UTC
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
idea.

Comment 2 Thorsten Leemhuis 2007-07-26 11:27:23 UTC
(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
> idea.

I see the point -- but for some other cron jobs it might be important to run
even when on battery.


Comment 3 Marcela Mašláňová 2007-07-30 14:26:35 UTC

*** This bug has been marked as a duplicate of 190268 ***


Note You need to log in before you can comment on or make changes to this bug.