Mailinglist Archive: opensuse (3666 mails)

< Previous Next >
Re: [SLE] cron.daily
  • From: Richard Bos <radoeka@xxxxxxxxx>
  • Date: Fri, 4 Mar 2005 23:23:04 +0100
  • Message-id: <200503042323.04663.radoeka@xxxxxxxxx>
Op vrijdag 4 maart 2005 13:46, schreef Anders Johansson:
> > Does anyone know when the scripts in /etc/cron.daily are being executed?
> > It is of course once a day, but just when.  Are the scripts examined
> > every minuted by /usr/bin/cron?  If so does it mean that the scripts
> > in /etc/cron.daily could be executed just after booting?  Just wondering.
>
> Have a look at /etc/crontab, that's where it's run from.

Ah yes that's the file. I could not find it anymore :(

> On my machine it says
>
> 14 4  * * *     root  rm -f /var/spool/cron/lastrun/cron.daily
>
> and
>
> -*/15 * * * *   root  test -x /usr/lib/cron/run-crons
> && /usr/lib/cron/run-crons
>  >/dev/null 2>&1

So it is run every 15 minures (*/15). Why it the "-" sign in front of the
*/15?

> so it gets run at 4.15 in the morning

Or if the system is booted up later and the file cron.daily is more than a day
old, it is executed almost after the boot (he, that's nice. That is what I
was looking for ;)

In my case (right now more or less):

# ls -ld /var/spool/cron/lastrun/cron.daily -rw-r--r-- 1 root root 0
Mar 4 22:45 /var/spool/cron/lastrun/cron.daily


--
Richard Bos
Without a home the journey is endless


< Previous Next >
Follow Ups