Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Will cron run a job that is currently running?

Say you had a cron job that ran every hour and one time the job was not completed when the next hour came around. Is it the responsibility of the job being run to make sure only one instance is running or does cron handle this?

share|improve this question
up vote 3 down vote accepted

Yes it is the responsability of the job being executed to make sure it is the only instance of itself being executed (if it is necessary). You could do that using some kind of lock file or maybe just using ps...

share|improve this answer

Cron will run the job regardless of what other crons have done or what else may be running.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.