updated the restart script for deployment