[PATCH] ssh-agent: exit 0 from SIGTERM under systemd socket-activation

Daniel Kahn Gillmor dkg at fifthhorseman.net
Thu Apr 17 01:38:38 AEST 2025


On Tue 2025-04-15 20:18:34 -0400, Daniel Kahn Gillmor wrote:
> This change makes ssh-agent exit cleanly (code 0) in response to a
> SIGTERM when launched under socket activation. This aligns the systemd
> supervisor's understanding of the state of supervised ssh-agent with
> reality.

I've also proposed this on github as:
https://github.com/openssh/openssh-portable/pull/565

Thanks for considering this cleanup!

       --dkg
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 227 bytes
Desc: not available
URL: <http://lists.mindrot.org/pipermail/openssh-unix-dev/attachments/20250416/a6aa1c19/attachment-0001.asc>


More information about the openssh-unix-dev mailing list