Closed olifre closed 1 year ago
I am right now going with the following file in /usr/lib/tmpfiles.d/oidc-agent.conf
:
# /tmp/oidc-agent-service/* is used for symlinks to the actual agent instance
# which may run for many days. This following line prevents systemd from removing this content.
x /tmp/oidc-agent-service/*
I believe this should do the trick.
Many thanks; I'll include a fix and push it to the next release, likely by end of next week.
Preivew of the fix is available for a subset of distributed linux distributions at https://repo.data.kit.edu/devel
@marcvs Many thanks! I have deployed the very same file manually on Gentoo Linux for now and can confirm things still work as expected after a week :+1: .
The default
AGENTSERVICEDIR
is${TMPDIR}/oidc-agent-service/${UID}
.This yields the following example directory structure:
Current Linux systems usually ship with the default
systemd-tmpfilesd
configuration file/usr/lib/tmpfiles.d/tmp.conf
which contains:With this, the directory containing the PID file and symlinks will be purged by default after 10 days if the root FS is mounted with
noatime
. The actual agent directory will remain, since that file remains being "in access".The cleanest possible workaround is probably to ship a
tmpfiles.d
exclusion file which prevents theAGENTSERVICEDIR
from being cleaned up?