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:
parent
a6c059203b
commit
ec04681c4d
1 changed files with 5 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue