Bug#961311: ssh-agent.service: cannot work without x11-common installed

Vladimir K <[email protected]>
Newsgroups gmane.linux.debian.devel.ssh
Message-ID <6039711734164264__25476.3885446422$1734164846$gmane$org@xhuxlcg565ilglxh.iva.yp-c.yandex.net>
Simpler unit without a wrapper:

[Unit]
Description=OpenSSH Agent
Documentation=man:ssh-agent(1)
Before=graphical-session-pre.target
Wants=dbus.socket
After=dbus.socket

[Service]
Type=exec
ExecStart=/usr/bin/ssh-agent -D -a "%t/ssh-agent.socket"
ExecStartPost=systemctl --user set-environment "SSH_AUTH_SOCK=%t/ssh-agent.socket"
ExecStopPost=systemctl --user unset-environment SSH_AUTH_SOCK

[Install]
WantedBy=default.target
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.