Re: Mystified by crontab/anacrontab

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, 01 Mar 2010 15:56:03 +0000
Timothy Murphy wrote:

> Any enlightenment gratefully received.

I don't know about enlightenment, but I find the whole anacron
thing absolutely useless and annoying. I used to be able
to get rid of it by disabling the (separate) anacron
service, or "yum erase anacron", but now that isn't
possible. Instead I have to go to alot of trouble to
transfer the anacrontab entries to crontab (fixing the
format) and eradicate everything anacron does by squashing
several files. I've got this script which runs in
a yum hook I wrote after every update to make sure
it stays squashed:

#!/bin/bash
#
# Drive a stake through anacron's heart if updates try to
# reinstall it.
#
for i in /etc/cron.d/0hourly /etc/cron.hourly/0anacron /etc/anacrontab
do
   if [ -s $i ]
   then
      cat /dev/null > $i
   fi
   rm -f $i.rpmnew
   rm -f $i.rpmsave
done

Now my cron jobs run when they are supposed to run, not at some
random unpredictable and highly inconvenient time.
-- 
users mailing list
users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [Fedora Magazine]     [Fedora News]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Maintainers]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Legacy]     [Fedora Desktop]     [Fedora Fonts]     [ATA RAID]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [SSH]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Centos]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Tux]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Asterisk PBX]     [Fedora Sparc]     [Fedora Universal Network Connector]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux