change order of service restart

avoid confusion in intermediate class