2.home-manager/tests/modules/services/ssh-agent/linux/basic-service-expected.service
Ihar Hrachyshka 5ed75a0312 services/ssh-agent: treat SIGTERM exit as clean
OpenSSH ssh-agent exits with status 2 when systemd stops it in
non-socket-activated mode.

Home Manager runs ssh-agent that way, so normal user-manager
shutdowns show up as unit failures.

Set SuccessExitStatus=2 for the Linux user service to match
upstream behavior. Startup failures and other unexpected exits
still fail the unit.
2026-03-30 12:14:23 +01:00

10 lines
201 B
Desktop File

[Install]
WantedBy=default.target
[Service]
ExecStart=@openssh@/bin/ssh-agent -D -a %t/ssh-agent/socket
SuccessExitStatus=2
[Unit]
Description=SSH authentication agent
Documentation=man:ssh-agent(1)