added restart hooks to deploy script