Bug 249586

Summary: prelink should not run when system is running on battery
Product: [Fedora] Fedora Reporter: Thorsten Leemhuis <fedora>
Component: anacronAssignee: Marcela Mašláňová <mmaslano>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: low Docs Contact:
Priority: low    
Version: rawhide   
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2007-07-30 14:26:35 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

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 ***