correctly restarting services in multinode deployments