nginx.pid location changed for Ubuntu releases 11.04 and up

Bug #1050516 reported by Rahul on 2012-09-13
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Nginx
Wishlist
Michael Lustfield
nginx (Ubuntu)
Wishlist
Michael Lustfield

Bug Description

In Ubuntu 11.04, /var/run is migrated to /run

See - http://askubuntu.com/questions/57297/why-has-var-run-been-migrated-to-run

So... in /etc/nginx/nginx.conf

Following line:

pid /var/run/nginx.pid;

must be changed to:

pid /run/nginx.pid;

Thomas Ward (teward) wrote :

Added:

affects: nginx (Ubuntu)

Since this refers to Ubuntu, any upstream changes to the Nginx project will impact either directly or indirectly the Ubuntu packages.

Rahul (rahul286) wrote :

Actually /var/run is symlinked to /run

Just noticed...

ls -l /var/run
lrwxrwxrwx 1 root root 4 Sep 12 14:27 /var/run -> /run

I am not sure if Ubuntu will maintain this symlink forever.

This is an extremely old transitional thing. I've been keeping my eye on it. The legacy /var/run will be maintained for an extremely long time. When the time comes, I'll make the change in Debian first. Right now, I'd prefer hold off. It's for legacy reasons that I want to hold off too. :P

There are still Ubuntu releases that are using /var/run. As you pointed out - 11.04 and up are where this change took place. I want to hold off first because of backports, and secondly because some older systems use the newer PPA.

In short... When all currently maintained Ubuntu or Debian releases have /run available, I will make this switch.

Also, this change will not take placed for released versions of Ubuntu. It would have to go through the entire SRU process for a change that doesn't really need to take place.

Thomas: Could you set this to Triaged and Wishlist in nginx (Ubuntu)? Please and thanks!

Changed in nginx:
status: New → Triaged
importance: Undecided → Wishlist
assignee: nobody → Michael Lustfield (michaellustfield)
Changed in nginx (Ubuntu):
assignee: nobody → Michael Lustfield (michaellustfield)
summary: - nginx.pid location should change for Ubuntu 11.04 & above
+ nginx.pid location changed for Ubuntu releases 11.04 and up
Thomas Ward (teward) wrote :

Triaged / Wishlist set at the request of Michael Lustfield.

Changed in nginx (Ubuntu):
importance: Undecided → Wishlist
status: New → Triaged
Changed in nginx (Ubuntu):
status: Triaged → Fix Committed
Changed in nginx:
status: Triaged → Fix Committed
Changed in nginx:
status: Fix Committed → Fix Released

This change has been been in Debian. It will land in 13.04 and up. I have no intentions of trying to get this into anything prior as the transitional symlink exists and no benefit comes from it. I can't imagine how hard that would be to push through an SRU...

Changed in nginx (Ubuntu):
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers