[systemd-devel] Socket is dying, how to automatically restart it?

Thomas Bächler thomas at archlinux.org
Fri Apr 19 01:22:09 PDT 2013


Am 18.04.2013 16:44, schrieb Lennart Poettering:
> On Thu, 18.04.13 16:38, Thomas Bächler (thomas at archlinux.org) wrote:
> 
>> Am 18.04.2013 16:04, schrieb Lennart Poettering:
>>> That said, screen should probably set up a new PAM session of its own
>>> and detach from the original one.
>>
>> That sounds like a good idea - unfortunately, screen does not seem to
>> have PAM session support at all, and I couldn't find the obvious place
>> to add this inside screen (I didn't invest much time in it either). This
>> would allow screen sessions to be tracked by logind instead of having
>> many "State=closing" sessions floating around.
> 
> BTW, this probably needs sokme changes in systemd too. Since right now,
> if you open a PAM session from a process that is already part of a PAM
> session logind will just return the same data as the first time. So to
> make this work properly, we'd to define a way how certain PAM services
> can explicitly ask to get a new session assigned.

So that's what happens with 'su' and 'sudo' - I always wondered. The
obvious solution would be to add an option to pam_systemd which would
force opening a new session despite being part of an active session.
That setting could then be set in /etc/pam.d/screen.


-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 901 bytes
Desc: OpenPGP digital signature
URL: <http://lists.freedesktop.org/archives/systemd-devel/attachments/20130419/cf81b793/attachment.pgp>


More information about the systemd-devel mailing list