summaryrefslogtreecommitdiff
path: root/cmd/service/status.c
diff options
context:
space:
mode:
authorDavid Oberhollenzer <goliath@infraroot.at>2019-03-21 17:11:22 +0100
committerDavid Oberhollenzer <goliath@infraroot.at>2019-03-21 17:11:52 +0100
commitec04681c4dc30a1c52203c65ffef48c3c0e601cb (patch)
treeeeb6e1312aa27dd03277f029e6981df5b4435ae6 /cmd/service/status.c
parenta6c059203b51ad801484b125ec4e45296b3f1aea (diff)
Make service status matching fuzzier (also allow service name match)
Signed-off-by: David Oberhollenzer <goliath@infraroot.at>
Diffstat (limited to 'cmd/service/status.c')
-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;