aboutsummaryrefslogtreecommitdiffstats
path: root/doc/examples/systemd-user/gpg-agent-ssh.socket
diff options
context:
space:
mode:
authorDaniel Kahn Gillmor <[email protected]>2016-10-27 18:19:18 +0000
committerWerner Koch <[email protected]>2016-11-11 07:44:51 +0000
commit57e95f5413e21cfcb957af2346b292686a5647b7 (patch)
tree1ed7f3550d599207beb3e0785f4ed4bcfe5cfa1e /doc/examples/systemd-user/gpg-agent-ssh.socket
parentagent: Clean up comments. (diff)
downloadgnupg-57e95f5413e21cfcb957af2346b292686a5647b7.tar.gz
gnupg-57e95f5413e21cfcb957af2346b292686a5647b7.zip
doc: Include config examples for socket-activated user services.
-- These configuration files and instructions enable clean and simple daemon supervision on machines that run systemd. Signed-off-by: Daniel Kahn Gillmor <[email protected]> - Removed the detailed ChangeLog entry because that is not needed for doc changes. - Added an entry to doc/examples/README. Signed-off-by: Werner Koch <[email protected]>
Diffstat (limited to 'doc/examples/systemd-user/gpg-agent-ssh.socket')
-rw-r--r--doc/examples/systemd-user/gpg-agent-ssh.socket13
1 files changed, 13 insertions, 0 deletions
diff --git a/doc/examples/systemd-user/gpg-agent-ssh.socket b/doc/examples/systemd-user/gpg-agent-ssh.socket
new file mode 100644
index 000000000..798c1d967
--- /dev/null
+++ b/doc/examples/systemd-user/gpg-agent-ssh.socket
@@ -0,0 +1,13 @@
+[Unit]
+Description=GnuPG cryptographic agent (ssh-agent emulation)
+Documentation=man:gpg-agent(1) man:ssh-add(1) man:ssh-agent(1) man:ssh(1)
+
+[Socket]
+ListenStream=%t/gnupg/S.gpg-agent.ssh
+FileDescriptorName=ssh
+Service=gpg-agent.service
+SocketMode=0600
+DirectoryMode=0700
+
+[Install]
+WantedBy=sockets.target