MCPcopy Create free account
hub / github.com/acl-dev/acl / proctl_monitor_cmd_probe

Function proctl_monitor_cmd_probe

lib_acl/src/proctl/proctl_monitor.c:200–213  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

198}
199
200static int proctl_monitor_cmd_probe(ACL_VSTREAM *client, const char *filepath)
201{
202 if (filepath == NULL || *filepath == 0) {
203 acl_vstream_fprintf(client, "-ERR|filepath is null\r\n");
204 return (-1);
205 }
206
207 if (proctl_service_exist(filepath))
208 acl_vstream_fprintf(client, "+OK|service: %s is running\r\n", filepath);
209 else
210 acl_vstream_fprintf(client, "+OK|service: %s is not running\r\n", filepath);
211
212 return (0);
213}
214
215static void usage(ACL_VSTREAM *client)
216{

Callers 1

proctl_monitor_mainFunction · 0.85

Calls 2

acl_vstream_fprintfFunction · 0.85
proctl_service_existFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…