Add some systemd services
This commit is contained in:
parent
a5f2dd9208
commit
5ec17e461b
4 changed files with 43 additions and 0 deletions
.config/systemd/user
12
.config/systemd/user/ssh-agent.service
Normal file
12
.config/systemd/user/ssh-agent.service
Normal file
|
@ -0,0 +1,12 @@
|
|||
[Unit]
|
||||
Description=SSH key agent
|
||||
|
||||
[Service]
|
||||
Type=forking
|
||||
Environment=SSH_AUTH_SOCK=%h/.ssh/ssh_auth_sock
|
||||
ExecStartPre=/usr/bin/rm -f $SSH_AUTH_SOCK
|
||||
ExecStart=/usr/bin/ssh-agent -a $SSH_AUTH_SOCK
|
||||
|
||||
[Install]
|
||||
WantedBy=default.target
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue