dirmngr.README.Debian 1.51 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11
dirmngr system integration
==========================

Since 2.1.x, gpg and most related processes will auto-launch dirmngr
if needed.  These auto-launched processes will inherit whatever
environment they started from, and they will not terminate
automatically.

systemd
=======

12 13 14 15
Since 2.1.17, users on machines with systemd will have a dirmngr
process launched automatically by systemd's user session, upon first
access of the standard socket.  systemd will also cleanly tear this
process down at session logout.
16

17 18
Users who don't want systemd to manage their dirmngr in this way for
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 24
operation.  (This decision can be reversed by the user with "unmask"
instead of "mask")
25

26 27 28 29 30
See systemctl(1) for more details about managing the dirmngr.socket
unit.

Manual dirmngr startup and teardown
===================================
31 32

Any user who wants to launch dirmngr manually (e.g., to talk to it
33 34
with a tool from outside the GnuPG suite) and is *not* using systemd
should first ensure that it is launched with:
35 36 37 38

   gpgconf --launch dirmngr

If dirmngr is launched manually or automatically (but not supervised
39 40
by systemd), you also probably want to ensure that it terminates when
your session ends with:
41

42
   gpgconf --kill dirmngr
43

44 45
If you're not using systemd, you may wish to add this command to your
session logout scripts.
46

47
 -- Daniel Kahn Gillmor <dkg@fifthhorseman.net>, Mon, 23 Jan 2017 22:49:45 -0500