restart elasticsearch if state before install was running