Updating the start-nginx script to wait for socket to be ready before starting nginx