From: Felix Fietkau Date: Wed, 19 Oct 2016 12:09:10 +0000 (+0200) Subject: service: do not restart instances if data changes X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=d80aaf4dc5ab00d65c0ae40dd7d6006155caa33b;p=project%2Fprocd.git service: do not restart instances if data changes Drop in->data from instance_config_changed() checks. So far, procd_open_data is always used in places for passing data to other services, not for triggering restarts on specific changes. With this change it is possible to use this behavior more explicitly while avoiding unnecessary restarts Signed-off-by: Felix Fietkau --- diff --git a/service/instance.c b/service/instance.c index bfc0979..d75e1ab 100644 --- a/service/instance.c +++ b/service/instance.c @@ -568,9 +568,6 @@ instance_config_changed(struct service_instance *in, struct service_instance *in if (!blobmsg_list_equal(&in->env, &in_new->env)) return true; - if (!blobmsg_list_equal(&in->data, &in_new->data)) - return true; - if (!blobmsg_list_equal(&in->netdev, &in_new->netdev)) return true;