imported Jason Giedymin's newest version of the nginx init script