Files
grpc/examples/cpp/systemd_socket_activation
Craig Tiller 339906443b [clang-format] Match include file ordering to internal clang-format (#40905)
gRPC is currently getting formatted with two different clang-format implementations, and due to some weirdness they have different include file orderings. This change introduces clang-format configuration to ensure that the two systems align - it's *highly* expected that this will need some maintenance going forward as the two systems evolve.

Closes #40905

PiperOrigin-RevId: 819606209
2025-10-15 00:24:11 -07:00
..
2025-03-27 18:49:43 -07:00

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.