service: do not restart instances if data changes
authorFelix Fietkau <nbd@nbd.name>
Wed, 19 Oct 2016 12:09:10 +0000 (14:09 +0200)
committerFelix Fietkau <nbd@nbd.name>
Wed, 19 Oct 2016 12:09:24 +0000 (14:09 +0200)
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 <nbd@nbd.name>
service/instance.c

index bfc0979..d75e1ab 100644 (file)
@@ -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;