[PATCH v2] procd: add info json output
Florian Eckert
fe at dev.tdt.de
Mon Dec 14 08:17:23 EST 2020
Hi Petr,
>> By adding the extra command `info` it is now possible to retrieve all
>> relevant data from a procd started service directly via the init
>> script.
>
> whats the use case, how is this useful?
As already mentioned, it is a improvement to get the information of the
procd service objects faster.
Until now, you always had to enter the whole string with valid json.
I just don't want to type so much.
And It's always easy to make a typo.
So I thought why not give the procd an extra command for this task.
>> Until now, you have to query the ubus with the command:
>> ubus call service list '{"name":"<xxx>","verbose":true}'
>>
>> With this change, the init script is now used with the command:
>> /etc/init.d/<xxx> info
>
> I find the `info` name ambiguous and misleading.
I am open about that. I can also imagine `json`.
It should just be short.
Best Regards
Florian
More information about the openwrt-devel
mailing list