diff options
author | Daniel Kahn Gillmor <dkg@fifthhorseman.net> | 2016-10-26 22:37:08 +0200 |
---|---|---|
committer | NIIBE Yutaka <gniibe@fsij.org> | 2016-10-27 03:46:53 +0200 |
commit | 75f8aaf5bc2dc7fcffe2987a572d489155c91eb9 (patch) | |
tree | 787adb71e263259128b35b8f74da42d3ac48ce18 /doc | |
parent | agent,common: move get_socket_name() into common. (diff) | |
download | gnupg2-75f8aaf5bc2dc7fcffe2987a572d489155c91eb9.tar.xz gnupg2-75f8aaf5bc2dc7fcffe2987a572d489155c91eb9.zip |
dirmngr: Implement --supervised command (for systemd, etc).
* dirmngr/dirmngr.c (main): Add new --supervised command, which is a
mode designed for running under a process supervision system like
systemd or runit.
* doc/dirmngr.texi: document --supervised option.
--
"dirmngr --supervised" is a way to invoke dirmngr such that a system
supervisor like systemd can provide socket-activated startup, log
management, and scheduled shutdown.
When running in this mode, dirmngr:
* Does not open its own listening socket; rather, it expects to be
given a listening socket on file descriptor 3.
* Does not detach from the invoking process, staying in the
foreground instead.
Signed-off-by: Daniel Kahn Gillmor <dkg@fifthhorseman.net>
Diffstat (limited to 'doc')
-rw-r--r-- | doc/dirmngr.texi | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/doc/dirmngr.texi b/doc/dirmngr.texi index bb8281d7d..69d7e5e8f 100644 --- a/doc/dirmngr.texi +++ b/doc/dirmngr.texi @@ -85,6 +85,13 @@ Run in background daemon mode and listen for commands on a socket. Note that this also changes the default home directory and enables the internal certificate validation code. This mode is deprecated. +@item --supervised +@opindex supervised +Run in the foreground, sending logs to stderr, and listening on file +descriptor 3, which must already be bound to a listening socket. This +is useful when running under systemd or other similar process +supervision schemes. + @item --list-crls @opindex list-crls List the contents of the CRL cache on @code{stdout}. This is probably |