Re: [LEDE-DEV] [PATCH 1/2] procd: Fix respawn after restart of instance

2018-03-23 Thread Pavel Merzlyakov
Miss this patch -> "[LEDE-DEV] [PATCH] procd: Restore respawn on SIGTERM timeout" (http://lists.infradead.org/pipermail/lede-dev/2017-October/009412.html) It's try to solve same problem. Description seems to be misleading (patch also seems to be wrong): >When SIGTERM times out, procd sends SIGKILL

[LEDE-DEV] [PATCH 2/2] procd: Copy missing attr/cfg to new instance

2018-03-22 Thread Pavel Merzlyakov
In case when we (async) stop instance and then start it again while it not actually killed, we just update config of old instance without remake (del and new) so we should update/move all attr/cfg of instance Signed-off-by: Pavel Merzlyakov --- service/instance.c | 49

[LEDE-DEV] [PATCH] procd: Fix stop of instance when respawn scheduled

2018-03-22 Thread Pavel Merzlyakov
It's give ability to stop respawn of instance which crashes in the beginning Signed-off-by: Pavel Merzlyakov --- service/instance.c | 21 + 1 file changed, 13 insertions(+), 8 deletions(-) diff --git a/service/instance.c b/service/instance.c index ecbb6ea..e2f0ee3 1

[LEDE-DEV] [PATCH 1/2] procd: Fix respawn after restart of instance

2018-03-22 Thread Pavel Merzlyakov
Without this fix respawn will be turned off in case when we (async) stop instance and then start it again while it not actually killed. Signed-off-by: Pavel Merzlyakov --- service/instance.c | 1 + 1 file changed, 1 insertion(+) diff --git a/service/instance.c b/service/instance.c index