mirror of https://github.com/grpc/grpc.git
The C based gRPC (C++, Python, Ruby, Objective-C, PHP, C#)
https://grpc.io/
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
14 lines
501 B
14 lines
501 B
2 years ago
|
gRPC systemd Socket Activation Example
|
||
|
================
|
||
|
|
||
|
This example shows how to use systemd's [socket-based activation](https://www.freedesktop.org/software/systemd/man/sd_listen_fds_with_names.html) 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.
|