Lennart Poettering
2018-05-10 13:42:43 UTC
...if the user fully logs out the directory MUST be removed.
https://github.com/projectatomic/libpod/issues/659https://unix.stackexchange.com/questions/386504/how-do-you-keep-systemd-user-services-alive-over-mosh
I tested this on a Debian system and I couldn't reproduce the problem: XDG_RUNTIME_DIR continued to exist when I disconnected and left a script running in nohup. But I don't know what to tell users who are experiencing this issue.
1. When should the user count as logged out? Is my assumption that
the user is logged in while any process is running with their UID
reasonable? Can we clarify this in the spec?
vague, to give impementors a bit of freedom to define their session
lifetimes.
That said, on systemd systems the definition of "being logged in" is
generally bound to "there's at least one PAM session around" for the
user. And that is usually bound to "is there an utmp entry for the
user"...
And by that definition just having a process with the user's UID
around is *not* sufficient to keep the XDG_RUNTIME_DIR around.
Lennart
--
Lennart Poettering, Red Hat
Lennart Poettering, Red Hat