Thanks for your work on the fix, and sorry for my slow reply, I needed some time to setup a test environment to reproduce this bug. Forgot to mention it earlier, but I encountered the issue on Ubuntu 12.04 LTS (Precise) which is why I have also just reproduced it in an equal environment.
Relevant steps taken to confirm the fix works on Precise:
1) Obtain a clean Ubuntu 12.04 LTS (Precise) installation
2) apt-get update && apt-get upgrade && apt-get install nginx # will give you stable nginx
3) sudo add-apt-repository ppa:teward/nginx-temporary # teward steps
4) sudo apt-get update # teward steps
5) sudo apt-get upgrade (or just apt-get install nginx) # teward steps, will give you his fixed nginx
6) add nginx.org mainline for precise, then apt-get update again, won't work right away so you need apt-get remove nginx && apt-get autoremove before installing mainline from nginx.org
7) sudo apt-get upgrade (or just apt-get install nginx) # will give you nginx.org mainline nginx
Between all changed versions of nginx (stable -> teward fixed version -> mainline nginx.org) I was able to confirm that all related service and init.d commands remained working and are correct, so I can confirm that this fix for Ubuntu 12.04 LTS (Precise) works like charm, thanks Thomas!
Hi Thomas (teward),
Thanks for your work on the fix, and sorry for my slow reply, I needed some time to setup a test environment to reproduce this bug. Forgot to mention it earlier, but I encountered the issue on Ubuntu 12.04 LTS (Precise) which is why I have also just reproduced it in an equal environment.
Relevant steps taken to confirm the fix works on Precise:
1) Obtain a clean Ubuntu 12.04 LTS (Precise) installation nginx-temporary # teward steps
2) apt-get update && apt-get upgrade && apt-get install nginx # will give you stable nginx
3) sudo add-apt-repository ppa:teward/
4) sudo apt-get update # teward steps
5) sudo apt-get upgrade (or just apt-get install nginx) # teward steps, will give you his fixed nginx
6) add nginx.org mainline for precise, then apt-get update again, won't work right away so you need apt-get remove nginx && apt-get autoremove before installing mainline from nginx.org
7) sudo apt-get upgrade (or just apt-get install nginx) # will give you nginx.org mainline nginx
Between all changed versions of nginx (stable -> teward fixed version -> mainline nginx.org) I was able to confirm that all related service and init.d commands remained working and are correct, so I can confirm that this fix for Ubuntu 12.04 LTS (Precise) works like charm, thanks Thomas!