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

Pavel Merzlyakov pavel.merzlyakov at gmail.com
Thu Mar 22 10:01:21 PDT 2018


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 <pavel.merzlyakov at gmail.com>
---
 service/instance.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/service/instance.c b/service/instance.c
index ecbb6ea..5a14f82 100644
--- a/service/instance.c
+++ b/service/instance.c
@@ -944,6 +944,7 @@ instance_config_move(struct service_instance *in, struct service_instance *in_sr
 	in->trigger = in_src->trigger;
 	in->command = in_src->command;
 	in->pidfile = in_src->pidfile;
+	in->respawn = in_src->respawn;
 	in->respawn_retry = in_src->respawn_retry;
 	in->respawn_threshold = in_src->respawn_threshold;
 	in->respawn_timeout = in_src->respawn_timeout;
-- 
2.16.1




More information about the Lede-dev mailing list