# Keeps unlocked SSH keys for the session, so git and ssh ask for a
# passphrase once (with AddKeysToAgent yes in ~/.ssh/config). Started by
# cont8nuum when SSH_AUTH_SOCK isn't set already (see src/session.c);
# stops with the session, so logging out forgets the keys.
[Unit]
Description=SSH key agent for cont8nuum
PartOf=graphical-session.target
After=graphical-session.target
[Service]
# A crash leaves the socket behind, and ssh-agent won't bind over it
ExecStartPre=-/usr/bin/rm -f %t/cont8nuum-ssh-agent.socket
ExecStart=ssh-agent -D -a %t/cont8nuum-ssh-agent.socket
Slice=session.slice
Restart=on-failure
RestartSec=2