Fix race during daemon restart

Signed-off-by: Steffen Vogel <post@steffenvogel.de>
This commit is contained in:
Steffen Vogel
2023-07-06 08:36:59 +02:00
parent 612fb806b3
commit a7a7b6aa9d
8 changed files with 181 additions and 154 deletions

View File

@@ -43,12 +43,15 @@ message AddPeerResp {
core.Interface interface = 2;
}
message ShutdownParams {
bool restart = 1;
}
service Daemon {
rpc GetBuildInfo(Empty) returns (BuildInfo) {}
rpc StreamEvents(Empty) returns (stream Event) {}
rpc UnWait(Empty) returns (Empty) {}
rpc Stop(Empty) returns (Empty) {}
rpc Restart(Empty) returns (Empty) {}
rpc Shutdown(ShutdownParams) returns (Empty) {}
rpc Sync(Empty) returns (Empty) {}
rpc GetStatus(GetStatusParams) returns (GetStatusResp) {}