correctly starting nginx in cases where it is not initially running