Make nginx wait to restart in all applicable places