From d80aaf4dc5ab00d65c0ae40dd7d6006155caa33b Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Wed, 19 Oct 2016 14:09:10 +0200 Subject: [PATCH] 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 --- service/instance.c | 3 --- 1 file changed, 3 deletions(-) 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; -- 2.30.2