You are not logged in.

#1 2016-06-11 21:47:47

Registered: 2011-08-14
Posts: 212

ssh-agent socket is not closed on X logout with systemd

With my current setup (LXDM, systemd), ssh-agent and emacs daemon are brutally murdered (SIGKILL I suppose) since their sockets remain on disk.
I don't think this is the correct behaviour, or am I missing something?

This does not happen if I login from a TTY, startx with a bare .xinitrc and do my things.
In case of a TTY login, a simple trap will do to clean up the session, e.g. for ssh-agent:

trap "ssh-agent -k" 0

The issue also occurs, however, when logged from a TTY and the following command is found in .xinitrc:

systemctl --user import-environment DISPLAY XAUTHORITY

So I guess this issue is systemd-related. I'm afraid I'm no systemd guru... Can anybody confirm this?


Board footer

Powered by FluxBB