Currently I have
*/5 * * * * (job) &
My goal is to run a crontab each 5 minutes after it finished executing, not every 5 minutes.
So what I want is
---- wait 5 minutes ---- run job ---- job finished ---- wait 5 minutes .... etc.
but currently it seems like
---- wait 5 minutes ---- run job ---- if 5 minutes passed run job again even if the previous job wasn't finished ---- wait 5 minutes .... etc.
which results in many concurrent threads that serve no purpose and make the system freeze.