refactor restarted services on deploy

[skip ci]