Mailinglist Archive: opensuse (3349 mails)

< Previous Next >
Re: [SLE] 9.3 cron.daily run time [SOLVED]
  • From: Anders Johansson <andjoh@xxxxxxxxxx>
  • Date: Sat, 7 May 2005 17:51:39 +0200
  • Message-id: <200505071751.39387.andjoh@xxxxxxxxxx>
On Saturday 07 May 2005 17:39, Scott Leighton wrote:
> > > And, how do I get cron.daily back to running at a reasonable
> > > time, like 4am or 5am in the morning?
> >
> > touch "with your timestamp" /var/spool/cron/lastrun/cron.daily
>
> Thanks! That solved it. I did have to use the -t switch on touch,
> e.g.,
>
> touch -t 200505070500 cron.daily
>
> Worked like a charm.

I don't think so. That unfortunately doesn't seem to set the correct time
stamp. Try

find /var/spool/cron/lastrun -name cron.daily -printf "%c\n"

The timestamp you see there is the one that will control when it's run.

So far, the only way I've found to do it correctly is to do

at 5am
> rm /var/spool/cron/lastrun/cron.daily
> touch /var/spool/cron/lastrun/cron.daily
> <ctrl-D>

Make sure atd is running (rcatd start)


< Previous Next >