When a service is started for the first time without trace
attribute (e.g. during boot), then it was impossible to restart it in
tracing mode (/etc/init.d/service trace). This is fixed here.

Signed-off-by: Michal Sojka <sojk...@fel.cvut.cz>
---
 service/instance.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/service/instance.c b/service/instance.c
index dc7e3ca..1760a09 100644
--- a/service/instance.c
+++ b/service/instance.c
@@ -941,6 +941,7 @@ instance_config_move(struct service_instance *in, struct 
service_instance *in_sr
        in->command = in_src->command;
        in->pidfile = in_src->pidfile;
        in->name = in_src->name;
+       in->trace = in_src->trace;
        in->node.avl.key = in_src->node.avl.key;
 
        free(in->config);
-- 
2.14.1


_______________________________________________
Lede-dev mailing list
Lede-dev@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/lede-dev

Reply via email to