Hi Alfred,

On 7/18/22 13:51, Alfred M. Szmidt wrote:
    I'm improving a Makefile for a project which uses [/usr/local]/var/lib
    and [/usr/local]/tmp.  I see there's no standard in the GNU coding
    standards for directory variables.

    I used the following:

    tmpdir := $(prefix)/tmp
    libstatedir := $(localstatedir)/lib

    I developed the name $libstatedir for symmetry with $runstatedir, which
    is also a child of $localstatedir, with the first part of the name as
    the name of the child dir.

    Would you mind adding those to your directory variables?

I think the first question is to understand what a "library state
directory" is?  Whate are you storing under it?  Seems like something
architecture independent? Are the files shareable between

I'm talking about NGINX Unit, which stores the running configuration (kind of what /etc/nginx/nginx.conf was to NGINX, but Unit uses a runtime defined JSON file). It also stores a few other files, but that's the main one. If the process is restarted, it picks up that configuration, so it needs to be kept after reboot (so not /run)

It is arch independent.

And it doesn't make sense to share it, as it represents the state of the running instance of unitd. Sharing it would probably break other instances of the process when one of the instances modifies it.

For /tmp, the only thing that should realy be used is /tmp (or
/var/tmp).  /usr/tmp would be strange, and very non-standard.

Yup, I replied to Bruno's message, which was more or less like this.



Alejandro Colomar

Attachment: OpenPGP_signature
Description: OpenPGP digital signature

Reply via email to