Check if a cron job is already running before restarting