Re: [SLE] 9.3 cron daily question
From: Carlos E. R. (robin1.listas_at_tiscali.es)
Date: 11/27/05
- Previous message: Carlos E. R.: "Re: [SLE] 10.0 and NTP"
- In reply to: Carlos E. R.: "Re: [SLE] 9.3 cron daily question"
- Next in thread: pelibali: "Re: [SLE] 9.3 cron daily question"
- Reply: pelibali: "Re: [SLE] 9.3 cron daily question"
- Reply: Anders Johansson: "Re: [SLE] 9.3 cron daily question"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Sun, 27 Nov 2005 15:43:23 +0100 (CET) To: SuSE Linux Mailing list <suse-linux-e@suse.com>
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
The Sunday 2005-11-27 at 13:53 +0100, I wrote:
> I have just now edited /usr/lib/cron/run-crons:
>
> #cron.daily) TIME="-ctime +1 -or -ctime 1" ;;
> #cron.weekly) TIME="-ctime +7 -or -ctime 7" ;;
> #bug
> cron.daily) TIME="-cmin +1400 -or -cmin -1400" ;;
> cron.weekly) TIME="-cmin +10080 -or -cmin -10080" ;;
>
> and I'll see if that fixes the 15' delay.
[...]
Well, it is not correct. It ran within 15 minutes of editing
/usr/lib/cron/run-crons, even if the flag file was stamped "Nov 27 01:15
cron.daily":
Nov 27 01:15:02 nimrodel run-crons[15358]: Starting cron daily run
Nov 27 14:00:01 nimrodel run-crons[20757]: Starting cron daily run
I'll touch the flag file and see what happens:
nimrodel:~ # touch --date="today 01:15:00"
/var/spool/cron/lastrun/cron.daily
nimrodel:~ # l /var/spool/cron/lastrun/cron.daily
- -rw-r--r-- 1 root root 0 Nov 27 01:15 /var/spool/cron/lastrun/cron.daily
[...]
No! It is running again at 14:30. I think I will undo the changes to the
script, it is wrong: it is running every fifteen minutes:
Nov 27 01:15:02 nimrodel run-crons[15358]: Starting cron daily run
Nov 27 14:00:01 nimrodel run-crons[20757]: Starting cron daily run
Nov 27 14:15:01 nimrodel run-crons[21710]: Starting cron daily run
Nov 27 14:30:02 nimrodel run-crons[22550]: Starting cron daily run
[...]
Right, after I undid the change, it stopped running every 15'. I think it
will run again at 1:30, which is not so wrong.
- --
Cheers,
Carlos Robinson
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.0 (GNU/Linux)
Comment: Made with pgp4pine 1.76
iD8DBQFDicYWtTMYHG2NR9URAtsSAKCJ2LuZjspcqfdO/Ui1Q8LcuZvzrwCfUaPy
ZJuAYc4GWrUoT6juysAw7as=
=APm2
-----END PGP SIGNATURE-----
-- Check the headers for your unsubscription address For additional commands send e-mail to suse-linux-e-help@suse.com Also check the archives at http://lists.suse.com Please read the FAQs: suse-linux-e-faq@suse.com
- Previous message: Carlos E. R.: "Re: [SLE] 10.0 and NTP"
- In reply to: Carlos E. R.: "Re: [SLE] 9.3 cron daily question"
- Next in thread: pelibali: "Re: [SLE] 9.3 cron daily question"
- Reply: pelibali: "Re: [SLE] 9.3 cron daily question"
- Reply: Anders Johansson: "Re: [SLE] 9.3 cron daily question"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|