fix restart in capdeploy