Generally, you cron the script that does that sort of detection. So, if there's any decisions to be made, you have to write the script ot make that decision. cron just runs the thing.
My criteria for good software:
Does it work?
Can someone else come in, make a change, and be reasonably certain no bugs were introduced?