grpc/examples/cpp/systemd_socket_activation
AJ Heller dbcb09d3d4
[Example] Move systemd socket activation example (#33221)
2023-05-23 13:18:06 -07:00
..
BUILD [Example] Move systemd socket activation example (#33221) 2023-05-23 13:18:06 -07:00
README.md [Example] Move systemd socket activation example (#33221) 2023-05-23 13:18:06 -07:00
client.cc [Example] Move systemd socket activation example (#33221) 2023-05-23 13:18:06 -07:00
server.cc [Example] Move systemd socket activation example (#33221) 2023-05-23 13:18:06 -07:00
test.sh [Example] Move systemd socket activation example (#33221) 2023-05-23 13:18:06 -07:00

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.