Re: Changing Date Results in Cron Jobs not Running

From: Bela Lubkin (belal_at_sco.com)
Date: 10/07/03


Date: Tue, 7 Oct 2003 19:30:33 GMT
To: scomsc@xenitec.ca

Peter McGill wrote:

> When our company turns the year, they want me to reset the date back
> to Sep 30 each day until we have finished all accounting for that
> year. Stupid I know. (Our year is Oct 1 - Sep 30)
>
> My problem is this causes all backup and maintenance tasks scheduled
> not to run.

You can get them to run by restarting cron. To do this, as root, run:

  /etc/rc2.d/P75cron stop
  rm -f /usr/lib/cron/FIFO
  sd cron

Whether this is actually a good idea is up to you. It will rerun Sep 30
cron jobs. If you have a rotating backup schedule (doing full backups
some days and incrementals other days) it will do whatever it was
supposed to do on Sep 30, repeatedly. Depending on how your backup
procedure works, this could be no big deal or it could be disastrous.

>Bela<



Relevant Pages

  • Re: Cron message puzzle
    ... On Sunday 28 January 2007 23:19, Cameron Simpson wrote: ... There is a small backup job ... Is there a /var/log/maillog file tracing mail delivery? ... I can find no sign that the cron job ...
    (Fedora)
  • Re: Cron message puzzle
    ... | getting logwatch messages, but no cron ones. ... There is a small backup ... Is there a /var/log/maillog file tracing mail delivery? ... the cron job has actually run today - except that files created as late ...
    (Fedora)
  • Re: Changing Date Results in Cron Jobs not Running
    ... >> When our company turns the year, they want me to reset the date back ... >You can get them to run by restarting cron. ... If you have a rotating backup schedule (doing full backups ... Then run other backup and maintenance scripts... ...
    (comp.unix.sco.misc)
  • Re: Backup plan help....
    ... > run raid 55 but oh well) I need a once nightly backup, ... > the scripts to do it, but would rather not as my shell scripting is a ... > MySQL database, the rest of the files change rarley. ... tar up the web pages from cron ...
    (linux.redhat)
  • Re: ufsdump in batch mode
    ... I have seen a backup that's run from cron stall many times ... I too have used ufsdump from a cron job during the middle of the night ... of tape, its stops in good order with a suitable error message (which gets ... if mt eom ...
    (comp.sys.sun.admin)