Re: [LEDE-DEV] [PATCH][RFC] procd: service: add data within the service itself

2017-10-25 Thread Pierre Lebleu
Hi John, I reworked this patch a bit in order to have the data outside of any instances. Doing that, I needed also to patch firewall3 in order to parse this data. Here come the "dump" of a dummy script: ubus call service list '{ "name" : "myservice" }' { "myservice": { "da

Re: [LEDE-DEV] [PATCH][RFC] procd: service: add data within the service itself

2017-10-18 Thread John Crispin
Hi Pierre sorry for the late reply, comments inline On 04/10/17 12:50, pme.leb...@gmail.com wrote: From: Pierre Lebleu It gives the ability to create firewall data within the service itself rather than within an instance. Signed-off-by: Pierre Lebleu --- service/service.c | 45 ++

Re: [LEDE-DEV] [PATCH][RFC] procd: service: add data within the service itself

2017-10-04 Thread Pierre Lebleu
The idea behind this patch is to allow you to create some firewall rules within the service itself rather than an instance. Indeed, I have a wrapper script which launches several different services but no daemon by itself, so I can not create an instance for it. Or, if I create an instance without