Add some systemd services

This commit is contained in:
Daniel Lundin 2016-10-10 19:24:59 +02:00
parent a5f2dd9208
commit 5ec17e461b
4 changed files with 43 additions and 0 deletions

View file

@ -0,0 +1,12 @@
[Unit]
Description=GnuPG private key agent
IgnoreOnIsolate=true
[Service]
Type=forking
ExecStart=/usr/bin/gpg-agent --daemon --homedir=%h/.gnupg
ExecStop=/usr/bin/pkill gpg-agent
Restart=on-abort
[Install]
WantedBy=default.target

View 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

View file

@ -0,0 +1,11 @@
[Unit]
Description=Start tmux in detached session
[Service]
Type=forking
User=%I
ExecStart=/usr/bin/tmux new-session -s %u -d
ExecStop=/usr/bin/tmux kill-session -t %u
[Install]
WantedBy=multi-user.target

View file

@ -0,0 +1,8 @@
[Unit]
Description=Start VirtualBox clipboard service
[Service]
ExecStart=/usr/bin/VBoxClient --nodaemon --clipboard
[Install]
WantedBy=multi-user.target