diff --git a/ssh-agent.service b/ssh-agent.service index 50a9ea1..311f91d 100644 --- a/ssh-agent.service +++ b/ssh-agent.service @@ -9,6 +9,7 @@ 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 PassEnvironment=SSH_AGENT_PID SuccessExitStatus=2