Only starting nginx after the config file has been written