[systemd-devel] [PATCH weston] doc/systemd: system service example

Lennart Poettering lennart at poettering.net
Thu Nov 30 12:32:46 UTC 2017

On Do, 30.11.17 11:16, Martyn Welch (martyn.welch at collabora.co.uk) wrote:

> Debugging suggested that XDG_RUNTIME_DIR was not being created when it
> failed. There are 2 processes setting a PAMName, the failing Weston
> service and the user at .service (IIRC this gets called as part of user
> session creation, which I think was triggered by "User=xuser" in our
> weston.service). The user at .service has "PAMName=systemd-user" where as
> weston.service has "PAMName=login". When user at .service called PAM first
> everything worked as expected, if weston.service called PAM first it
> failed. This was our attempt at forcing the former rather than the
> latter.

Ah yeah, we discussed this recently here:


So the problem is that user at .service currently can't be started
independently of logind, it must be logind that starts it for you at
the right moment. If you do anyway, XDG_RUNTIME_DIR won't be set, and
things fall apart. We should fix that though...


Lennart Poettering, Red Hat

More information about the wayland-devel mailing list