[cdc_stream] Implement stop-service command (#29)

Implements cdc_stream stop-service. Also fixes an issue in the
BackgroundService implementation where Exit() would deadlock since
server shutdown waits for all RPCs to exit.
This commit is contained in:
Lutz Justen
2022-12-02 19:39:13 +01:00
committed by GitHub
parent 1120dcbee0
commit 90717ce670
8 changed files with 149 additions and 4 deletions

View File

@@ -12,6 +12,7 @@ cc_binary(
":start_command",
":start_service_command",
":stop_command",
":stop_service_command",
"//common:log",
"//common:path",
],
@@ -40,6 +41,18 @@ cc_library(
],
)
cc_library(
name = "stop_service_command",
srcs = ["stop_service_command.cc"],
hdrs = ["stop_service_command.h"],
deps = [
":asset_stream_config",
":background_service_client",
":base_command",
":session_management_server",
],
)
cc_library(
name = "start_command",
srcs = ["start_command.cc"],