tree: 7e4b89aeaf7aadd738a6d8ca11e7efaabc7008a7 [path history] [tgz]
  1. BUILD
  2. client.cc
  3. README.md
  4. server.cc
  5. test.sh
examples/cpp/systemd_socket_activation/README.md

gRPC systemd Socket Activation Example

This example shows how to use systemd's socket-based activation with gRPC.

Build and run the example

The simplest way to exercise this is via test.sh. It roughly does the following:

  • Creates a systemd socket-activated service.
  • Builds the gRPC client & server.
  • Reloads the systemd daemon.
  • Runs the gRPC client, which in turn runs the gRPC server.