OpenDKIM icon indicating copy to clipboard operation
OpenDKIM copied to clipboard

/usr/lib/tmpfiles.d/opendkim.conf path points to /var/run/ instead of /run

Open wizwuz opened this issue 6 years ago • 6 comments

System: Debian buster/sid via Raspbian

OpenDKIM: opendkim: OpenDKIM Filter v2.11.0 Compiled with OpenSSL 1.1.1b 26 Feb 2019 SMFI_VERSION 0x1000001 libmilter version 1.0.1 Supported signing algorithms: rsa-sha1 rsa-sha256 Supported canonicalization algorithms: relaxed simple Active code options: POLL QUERY_CACHE USE_DB USE_LDAP USE_LUA USE_ODBX USE_UNBOUND _FFR_ATPS _FFR_RBL _FFR_REPLACE_RULES _FFR_SENDER_MACRO _FFR_STATS _FFR_VBR libopendkim 2.11.0: atps query_cache

Issue: The following line is logged in syslog on startup: [/usr/lib/tmpfiles.d/opendkim.conf:1] Line references path below legacy directory /var/run/, updating /var/run/opendkim → /run/opendkim; please update the tmpfiles.d/ drop-in file accordingly.

Looking at the tmpfiles.d config file, the content is: rpi# cat /usr/lib/tmpfiles.d/opendkim.conf d /var/run/opendkim 0750 opendkim opendkim - -

Path has been moved from /var/run to /run and systemd tmpfiles.d has been updated to warn when SW component still uses the old path.

OpenDKIM needs to be updated to use /run instead of /var/run for PID file.

wizwuz avatar Mar 13 '19 11:03 wizwuz

This may be true for Debian, but not for other systems. I guess we need to make it configurable.

mskucherawy avatar Jul 24 '19 18:07 mskucherawy

If someone else could write up a patch that accepts this path via ./configure and makes use of it in our configuration files, that would be extremely helpful.

mskucherawy avatar Jul 24 '19 18:07 mskucherawy

This was an open issue in the Debian package. It has now been corrected.

Nothing further to be done here.

glts avatar Jan 07 '20 09:01 glts

Using /run instead of /var/run breaks compliance with ... Filesystem Hierarchy Standard (FHS) 2.3 2004 http://www.pathname.com/fhs/

hdatma avatar Jul 10 '20 19:07 hdatma

@hdatma -- the latest version of FHS is at https://refspecs.linuxfoundation.org/fhs.shtml which includes /run.

@glts -- the warning is from systemd and is displayed on startup in at least Fedora, Redhat, Ubuntu and Debian. Most likely in any distro that has a systemd version that includes the warning. See downstream Redhat bug.

lazynooblet avatar Jan 27 '21 19:01 lazynooblet

The bug report was for Debian, and I was pointing out that the issue is fixed in Debian and Ubuntu. The issue reported here is no longer actionable and can be closed.

glts avatar Jul 30 '21 14:07 glts

I believe this issue can be closed, per report from glts.

thegushi avatar Dec 29 '22 12:12 thegushi

Ok it's 2023 now, and I am seeing this error on Debian, but don't remember seeing it before.

Should I set my config file to use /var/run/opendkim or /run/opendkim ?

[email protected]

WayneSallee avatar Dec 04 '23 21:12 WayneSallee

@hdatma -- the latest version of FHS is at https://refspecs.linuxfoundation.org/fhs.shtml which includes /run.

Still leave it as an option, as systems like OpenBSD do not have /run.

hdatma avatar Mar 11 '24 09:03 hdatma