daemon,native-client-api: first shot at socket-based activation.
authorKrisztian Litkey <kli@iki.fi>
Tue, 14 Jan 2014 19:47:41 +0000 (21:47 +0200)
committerKrisztian Litkey <kli@iki.fi>
Tue, 14 Jan 2014 21:42:13 +0000 (23:42 +0200)
commit6df15ceffdca0e8f382681d1fed090446eae73b8
tree0bef895a47db9d4206359f0a4110018430e85d2e
parentaee7a629e7583576693498f1fd1fff5f7173cf71
daemon,native-client-api: first shot at socket-based activation.

This patch adds support for systemd socket-based activation to the
daemon/core and to the native client API plugin. The core part of
the patch adds a new command line option (--sockets/-S) that is
used to specify the order and list of configuration variables to
which the sockets passed in are assigned to. Multiple variables can
be specified as a comma-separated list the order of which must match
the order of Listen* directives in the assocaited systemd socket
file.

The native client API part changes to plugin to use any passed in
socket for the transport, or otherwise use the configured transport
address to create one.

This needs a corresponding fix to the murphy transports to work.
configure.ac
src/Makefile.am
src/daemon/config.c
src/plugins/client-api/native/native-config.h
src/plugins/client-api/native/native-server.c