restart rails only if on a reils layer