File tree Expand file tree Collapse file tree 3 files changed +4
-1
lines changed Expand file tree Collapse file tree 3 files changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -88,6 +88,7 @@ impl CommandListener {
88
88
TeliodError :: CommandFailed ( ClientCmd :: QuitDaemon )
89
89
} )
90
90
}
91
+ ClientCmd :: IsAlive => Ok ( CommandResponse :: Ok ) ,
91
92
}
92
93
}
93
94
Original file line number Diff line number Diff line change @@ -37,6 +37,8 @@ const TIMEOUT_SEC: u64 = 1;
37
37
enum ClientCmd {
38
38
#[ clap( about = "Retrieve the status report" ) ]
39
39
GetStatus ,
40
+ #[ clap( about = "Query if daemon is running" ) ]
41
+ IsAlive ,
40
42
#[ clap( about = "Stop daemon execution" ) ]
41
43
QuitDaemon ,
42
44
}
Original file line number Diff line number Diff line change @@ -61,7 +61,7 @@ pub(crate) fn handle_request(request: Request) -> Response {
61
61
}
62
62
63
63
fn is_teliod_running ( ) -> bool {
64
- matches ! ( teliod_blocking_query!( ClientCmd :: GetStatus ) , Ok ( Ok ( _) ) )
64
+ matches ! ( teliod_blocking_query!( ClientCmd :: IsAlive ) , Ok ( Ok ( _) ) )
65
65
}
66
66
67
67
fn shutdown_teliod ( ) -> Result < ( ) , TeliodError > {
You can’t perform that action at this time.
0 commit comments