Mailinglist Archive: opensuse (4570 mails)
| < Previous | Next > |
Re: [SLE] Change the time that cron.daily is run
- From: "Carlos E. R." <robin1.listas@xxxxxxxxxx>
- Date: Sun, 27 Nov 2005 22:38:39 +0000 (UTC)
- Message-id: <Pine.LNX.4.61.0511272328110.19105@xxxxxxxxxxxxxxxx>
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
The Sunday 2005-11-27 at 10:36 -0500, Ian Marlier wrote:
> I'm trying to figure out how to change the time that the scripts in
> cron.daily are run.
>
> Currently they're processed right around 2 AM, 2:05 I think. This seems to
> be the default for 9.3.
No, that's not the way it works. It runs - it should run - at the same
time as the last day. If the computer is powered off at the time it
should run, it will run within 15 minutes of booting up, ant then it will
at that same time the nextday and there after.
The method ensures it runs once every 24 hours (if powered up), but not
when.
And in fact, it has a bug that makes it run 15 minutes later each day.
>
> For various reasons, I need some of them to run between 12:30 and 1 AM.
Then, create a crontab entry that runs:
touch /var/spool/cron/lastrun/cron.daily
at 12:14 exactly.
> It used to be possible to change the single line that controlled cron.daily
> (for example) in /etc/crontab. However, it seems that all of the scheduled
> scripts are now controlled by calling /usr/lib/cron/run-crons each hour.
> It's not clear to me where the config info comes from that tells run-crons
> on which hour to run the cron.daily scripts.
There is no config. Study what that script does and you will find out.
> Anyone have any pointers?
Search the archive, you will see this has been talked about several times.
- --
Cheers,
Carlos Robinson
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.0 (GNU/Linux)
Comment: Made with pgp4pine 1.76
iD8DBQFDijUetTMYHG2NR9URAgBOAJ9HkCvs5aD8Chq2j41prT33Q4EzYQCePNXa
u6cQzDGluWbCDTaDXw9u3Ow=
=KvLl
-----END PGP SIGNATURE-----
Hash: SHA1
The Sunday 2005-11-27 at 10:36 -0500, Ian Marlier wrote:
> I'm trying to figure out how to change the time that the scripts in
> cron.daily are run.
>
> Currently they're processed right around 2 AM, 2:05 I think. This seems to
> be the default for 9.3.
No, that's not the way it works. It runs - it should run - at the same
time as the last day. If the computer is powered off at the time it
should run, it will run within 15 minutes of booting up, ant then it will
at that same time the nextday and there after.
The method ensures it runs once every 24 hours (if powered up), but not
when.
And in fact, it has a bug that makes it run 15 minutes later each day.
>
> For various reasons, I need some of them to run between 12:30 and 1 AM.
Then, create a crontab entry that runs:
touch /var/spool/cron/lastrun/cron.daily
at 12:14 exactly.
> It used to be possible to change the single line that controlled cron.daily
> (for example) in /etc/crontab. However, it seems that all of the scheduled
> scripts are now controlled by calling /usr/lib/cron/run-crons each hour.
> It's not clear to me where the config info comes from that tells run-crons
> on which hour to run the cron.daily scripts.
There is no config. Study what that script does and you will find out.
> Anyone have any pointers?
Search the archive, you will see this has been talked about several times.
- --
Cheers,
Carlos Robinson
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.0 (GNU/Linux)
Comment: Made with pgp4pine 1.76
iD8DBQFDijUetTMYHG2NR9URAgBOAJ9HkCvs5aD8Chq2j41prT33Q4EzYQCePNXa
u6cQzDGluWbCDTaDXw9u3Ow=
=KvLl
-----END PGP SIGNATURE-----
| < Previous | Next > |