restart service if needed