Zero downtime deploy

Port script from LSED for zero downtime deploy