1
0
Fork 0
mirror of https://github.com/pygos/init.git synced 2024-11-24 12:00:42 +01:00

Make service status matching fuzzier (also allow service name match)

Signed-off-by: David Oberhollenzer <goliath@infraroot.at>
This commit is contained in:
David Oberhollenzer 2019-03-21 17:11:22 +01:00
parent a6c059203b
commit ec04681c4d

View file

@ -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;