Disable forking of ssh-agent on startup

Resoves: rhbz#2148555
This commit is contained in:
Dmitry Belyavskiy 2023-08-03 10:32:24 +02:00
parent ec2f61e2cf
commit f4f5944e31
2 changed files with 3 additions and 2 deletions

View File

@ -746,6 +746,7 @@ test -f %{sysconfig_anaconda} && \
%changelog
* Thu Aug 03 2023 Dmitry Belyavskiy <dbelyavs@redhat.com> - 9.3p1-8
- Split including crypto-policies to a separate config (rhbz#1970566)
- Disable forking of ssh-agent on startup (rhbz#2148555)
* Tue Aug 01 2023 Dmitry Belyavskiy <dbelyavs@redhat.com> - 9.3p1-7
- Relax checks of OpenSSL version

View File

@ -10,10 +10,10 @@ Requires=ssh-agent.socket
[Service]
Environment=SSH_AUTH_SOCK=%t/ssh-agent.socket
ExecStartPre=/usr/bin/rm -f $SSH_AUTH_SOCK
ExecStart=/usr/bin/ssh-agent -a $SSH_AUTH_SOCK
ExecStart=/usr/bin/ssh-agent -D -a $SSH_AUTH_SOCK
PassEnvironment=SSH_AGENT_PID
SuccessExitStatus=2
Type=forking
Type=simple
[Install]
Also=ssh-agent.socket