troglobit / finit

Fast init for Linux. Cookies included
https://troglobit.com/projects/finit/
MIT License
633 stars 63 forks source link

Feature request, finit status NAME should show all services if multiple ids #197

Closed hongkongkiwi closed 2 years ago

hongkongkiwi commented 3 years ago

If I have three services e.g.

Then I do initctl status myservice it displays mysesrvice:a because it apperas first in the config. My suggestion is that it should show all status's for all subservices. Then if I want to drill down I could use initctl status myservice:b.

As an addon to this, can I also suggest a command that given a service name e.g. myservice, it returns all ids associated with it.... e.g. initctl ids myservice and it would return:

myservice:a
myservice:b
myservice:c
hongkongkiwi commented 3 years ago

Or maybe.... a better way might be to show nothing if passing a name when there are more than 1 id specified.

troglobit commented 3 years ago

This was actually part of the 3.x series, it must've gotten lost in the big refactor. We'll look into restoring the functionality in a later release cycle.