chiark / gitweb /
gpg: Fix searching for mail addresses in keyrings.
[gnupg2.git] / debian / dirmngr.README.Debian
1 dirmngr system integration
2 ==========================
3
4 Since 2.1.x, gpg and most related processes will auto-launch dirmngr
5 if needed.  These auto-launched processes will inherit whatever
6 environment they started from, and they will not terminate
7 automatically.
8
9 systemd
10 =======
11
12 Since 2.1.17, users on machines with systemd will have a dirmngr
13 process launched automatically by systemd's user session, upon first
14 access of the standard socket.  systemd will also cleanly tear this
15 process down at session logout.
16
17 Users who don't want systemd to manage their dirmngr in this way for
18 all future sessions should do:
19
20     systemctl --user mask --now dirmngr.socket
21
22 Doing this means that dirmngr will fall back to its manual mode of
23 operation.  (This decision can be reversed by the user with "unmask"
24 instead of "mask")
25
26 See systemctl(1) for more details about managing the dirmngr.socket
27 unit.
28
29 Manual dirmngr startup and teardown
30 ===================================
31
32 Any user who wants to launch dirmngr manually (e.g., to talk to it
33 with a tool from outside the GnuPG suite) and is *not* using systemd
34 should first ensure that it is launched with:
35
36    gpgconf --launch dirmngr
37
38 If dirmngr is launched manually or automatically (but not supervised
39 by systemd), you also probably want to ensure that it terminates when
40 your session ends with:
41
42    gpgconf --kill dirmngr
43
44 If you're not using systemd, you may wish to add this command to your
45 session logout scripts.
46
47  -- Daniel Kahn Gillmor <dkg@fifthhorseman.net>, Mon, 23 Jan 2017 22:49:45 -0500