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.
10 lines
202 B
Desktop File
10 lines
202 B
Desktop File
[Install]
|
|
WantedBy=default.target
|
|
|
|
[Service]
|
|
ExecStart=@openssh@/bin/ssh-agent -D -a %t/ssh-agent -t 1337
|
|
SuccessExitStatus=2
|
|
|
|
[Unit]
|
|
Description=SSH authentication agent
|
|
Documentation=man:ssh-agent(1)
|