summaryrefslogtreecommitdiffstats
path: root/debian/dirmngr.README.Debian
blob: 099240adb56621c5b780e089bf0b98222d891c79 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
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
=======

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.

Users who don't want systemd to manage their dirmngr in this way for
all future sessions should do:

    systemctl --user mask --now dirmngr.socket

Doing this means that dirmngr will fall back to its manual mode of
operation.  (This decision can be reversed by the user with "unmask"
instead of "mask")

See systemctl(1) for more details about managing the dirmngr.socket
unit.

Manual dirmngr startup and teardown
===================================

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

   gpgconf --launch dirmngr

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

   gpgconf --kill dirmngr

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

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