1
0
mirror of git://git.gnupg.org/gnupg.git synced 2025-02-01 16:33:02 +01:00
Daniel Kahn Gillmor 9f92b62a51
agent: Implement --supervised command (for systemd, etc).
* agent/gpg-agent.c (get_socket_path): New function for POSIX systems
to return the path for a provided unix-domain socket.
(map_supervised_sockets): New function to inspect $LISTEN_FDS and
$LISTEN_FDNAMES and map them to the specific functionality offered by
the agent.
(main): Add --supervised command.  When used, listen on already-open
file descriptors instead of opening our own.
* doc/gpg-agent.texi: Document --supervised option.

--

"gpg-agent --supervised" is a way to invoke gpg-agent such that a
system supervisor like systemd can provide socket-activated startup,
log management, and scheduled shutdown.

When running in this mode, gpg-agent:

 * Does not open its own listening socket; rather, it expects to be
   given a listening socket on incoming file descriptors.

 * Does not detach from the invoking process, staying in the
   foreground instead.  Unless otherwise specified, logs are sent to
   stderr.

Signed-off-by: Daniel Kahn Gillmor <dkg@fifthhorseman.net>
2016-10-04 17:11:43 +02:00
..
2016-07-18 12:51:38 +02:00
2015-10-28 10:20:17 +01:00
2016-09-17 16:00:37 +09:00
2016-09-17 16:00:37 +09:00
2016-08-09 11:42:20 +09:00
2015-11-17 12:50:22 +01:00
2016-09-17 16:00:37 +09:00
2016-08-03 16:54:01 +02:00
2016-09-30 17:45:59 +02:00
2014-12-02 14:13:53 +01:00
2016-09-17 16:16:41 +09:00
2007-07-04 19:49:40 +00:00
2015-11-17 12:50:22 +01:00
2007-07-04 19:49:40 +00:00