using a cron script to handle the state of the consul cluster