register service, then restart after creating init