Results 1 to 7 of 7
  1. #1
    Join Date
    Jul 2001
    Posts
    889

    CRON when server goes down

    Hey, say you have a daily cron job. Say it runs at 2am everyday. If the server is down between 1am and 3am, will the cron run for that day at 3am, or will it wait until 2am the next day?

    Thanks

  2. #2
    wait until 2am the next day?

    YB

  3. #3
    Join Date
    Jul 2001
    Posts
    889
    is that a question?

  4. #4
    Join Date
    Jul 2002
    Location
    Alberta, Canada
    Posts
    348
    thats the answer. cron doesnt know whether it ran the last time or not, at least to my knowledge. though i would look at it this way: if the server is down for 10 days, do you think that it would be a good idea for cron to run every daily job 10 times over when it comes back up?
    AC Host Canada Affordable Canadian Web Hosting Solutions
    Shared Hosting | Email Hosting | DNS Hosting | Custom Plans Available
    Website: www.achost.ca email: [email protected]

  5. #5
    Crond just checks the tasks it has to run, every minute. It will start checking from the moment the server is up. So if you system goes down at 10:00 (crond gets stopped) and is up again at 11:30 (cron daemon restarts) and you have a job that is supposed to run everyday at 10:15, it will not get run until 10:15 the next day.

  6. #6
    Originally posted by aragon
    is that a question?
    Hi - sorry I should have made that clearer - its the answer.

    YB

  7. #7
    Join Date
    Jul 2001
    Posts
    889
    Makes sense. Thanks!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •