| 198 | } |
| 199 | |
| 200 | static 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 | |
| 215 | static void usage(ACL_VSTREAM *client) |
| 216 | { |
no test coverage detected
searching dependent graphs…