aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--cmd/service/status.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/cmd/service/status.c b/cmd/service/status.c
index 38c1477..be5c930 100644
--- a/cmd/service/status.c
+++ b/cmd/service/status.c
@@ -76,6 +76,11 @@ static int cmd_status(int argc, char **argv)
found = false;
for (i = optind; i < argc; ++i) {
+ if (fnmatch(argv[i],
+ resp.service_name, 0) == 0) {
+ found = true;
+ break;
+ }
if (fnmatch(argv[i], resp.filename, 0) == 0) {
found = true;
break;