-
Notifications
You must be signed in to change notification settings - Fork 273
Description
Current default/linux/amd64/23.0/desktop.
Replacing username in following description with USER
Ran across the issue trying to make xrdp (dilfridge repo or also self-built current xrdp 0.10.4 ebuild) work. Comes with:
/etc/pam.d/xrdp-sesman
auth include system-remote-login
account include system-remote-login
password include system-remote-login
session include system-remote-login
So, when starting a session, it call PAM which starts
/run/openrc/init.d/user.USER --lockfd 23 start
Which then through a couple of intermediate programs hangs itself in
/usr/libexec/rc/bin/openrc-user USER
where hanging means that it waits for a TERM signal, which seemingly is what's described as 'lingering' in https://wiki.gentoo.org/wiki/OpenRC. Which ultimately makes xrdp fail because it's not continuing it's code execution path.
Without any xrdp started, i can also reproduce this problem (as root) with
/etc/init.d/user.USER start
* Caching service dependencies ... [ ok ]
* Starting user.USER ...
(hangs)
Hangs in the same place waiting for TERM signal.
Alas, no documentation in the wiki nor any other place about this (how to troubleshoot openrc user lingering, and what is it's expected behavior).
If one is expected to explicitly call this openrc user stuff by explicitly background it, how the heck is a standard PAM application meant to handle this - AFAIK, there was never explicit backgrounding required when calling PAM. And of course, what app is meant to send the TERM ?
Any example application that is gentoo supported and explicitly supporting this openrc user stuff ?