Opened 17 months ago

Last modified 13 months ago

#2429 new defect

Ship FHS compliant packages (/var/run > /run)

Reported by: istiak101@… Owned by:
Priority: minor Milestone:
Component: nginx-package Version: 1.22.x
Keywords: Cc:
uname -a:
nginx -V: 1.22.1

Description

In 2015 Linux FHS was updated.
https://refspecs.linuxfoundation.org/FHS_3.0/fhs/index.html

And recently systemd started complaining about this on newer distro releases like RHEL 9.X.

https://access.redhat.com/solutions/4154291

I inspected official stable and mainline RPM package and found that it still uses /var/run. It should switch to /run for Linux distro packages. This is not actually a nginx issue but rather packaging issue. So pardon me if I mislabeled any components.

Change History (2)

comment:1 by istiak101@…, 17 months ago

Sorry I couldn't add many links TRAC detecting it as spam. Here is a Ubuntu reference.
https://bugs.launchpad.net/ubuntu/+source/dbus/+bug/1854314

So anything that ships with systemd should update. Other than that it's Linux FHS.

comment:2 by Maxim Dounin, 17 months ago

Just for the record, changing /var/run/nginx.pid to /run/nginx.pid in nginx configuration will break configuration reload (till nginx restart or upgrade) on systems using symlinks from /var/run/ to /run/ or vice versa, see ticket #796.

Note: See TracTickets for help on using tickets.