Red Hat Bugzilla – Bug 65869
apmscript behaves badly when running anacron
Last modified: 2007-04-18 12:42:53 EDT
Description of Problem:
This is an enhancement request. Could you please use the -s flag when running
anacron in /etc/sysconfig/apm-scripts/apmscript? Everything works as is, but I
have a terrible time using my computer when I turn it on first thing in the
morning because it runs anacron which runs the tripwire check and my backup
script at the same time and the system slows to a crawl. I've added -s (which
means run jobs sequentially rather than all at once) to fix this in my personal
copy of the file, but I'm sure other people would appreciate this small change.
Sounds sensible to me.
But run-parts serializes the execution of cron jobs anyway,
so I don't really know how much affection this would have?
The reason this is a problem on my system is that my backup script runs weekly,
but updatedb and tripwire run daily. Once a week, anacron will use run-parts on
the daily and weekly jobs at the same time.
In anacron-2.3-23 /etc/init.d/anacron now starts anacron with the "-s"
option and at nice level 19. It would probably be good if apmd did the
same. Perhaps it could just be made to run "/etc/init.d/anacron"?
I can make this change if you like, bero?
Assigning this to myself for now.
Added in 3.0.2-19.