aboutsummaryrefslogtreecommitdiffstats
path: root/.config/systemd
diff options
context:
space:
mode:
authorDavid Runge <dave@sleepmap.de>2020-07-26 14:47:13 +0200
committerDavid Runge <dave@sleepmap.de>2020-07-26 14:47:13 +0200
commite23b20cb12ae64bed5af0b5f8262bb1abf5f9e23 (patch)
tree1c2a22b69545d0b8286f4d6a605d168b84b100f4 /.config/systemd
parent624c19b1c692363ba9845bcbb7fd45fc783d63f4 (diff)
downloaddotfiles-e23b20cb12ae64bed5af0b5f8262bb1abf5f9e23.tar.gz
dotfiles-e23b20cb12ae64bed5af0b5f8262bb1abf5f9e23.tar.bz2
dotfiles-e23b20cb12ae64bed5af0b5f8262bb1abf5f9e23.tar.xz
dotfiles-e23b20cb12ae64bed5af0b5f8262bb1abf5f9e23.zip
Add systemd user service for ssh-agent
.config/systemd/user/ssh-agent.service: Add a simple systemd user service for ssh-agent
Diffstat (limited to '.config/systemd')
-rw-r--r--.config/systemd/user/ssh-agent.service13
1 files changed, 13 insertions, 0 deletions
diff --git a/.config/systemd/user/ssh-agent.service b/.config/systemd/user/ssh-agent.service
new file mode 100644
index 0000000..ab9d0d0
--- /dev/null
+++ b/.config/systemd/user/ssh-agent.service
@@ -0,0 +1,13 @@
+# /usr/lib/systemd/user/ssh-agent.service
+[Unit]
+Description=SSH key agent
+After=local-fs.target
+ConditionFileIsExecutable=/usr/bin/ssh-agent
+
+[Service]
+Type=forking
+Environment=SSH_AUTH_SOCK=%t/ssh-agent.socket
+ExecStart=/usr/bin/ssh-agent -a $SSH_AUTH_SOCK
+
+[Install]
+WantedBy=default.target