From: Michal Sojka Date: Tue, 12 Sep 2017 11:12:36 +0000 (+0200) Subject: Update trace attribute X-Git-Url: http://git.archive.openwrt.org/?p=project%2Fprocd.git;a=commitdiff_plain;h=592c5323f1dc212cfdf7d2a1df1c8ba2d2790497 Update trace attribute 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 --- 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);