enable restart on config change
authorFelix Fietkau <nbd@openwrt.org>
Sun, 24 Jun 2012 17:02:54 +0000 (19:02 +0200)
committerFelix Fietkau <nbd@openwrt.org>
Sun, 24 Jun 2012 17:02:54 +0000 (19:02 +0200)
instance.c

index 8c3af4b..a1604f6 100644 (file)
@@ -115,6 +115,7 @@ instance_update(struct service_instance *in, struct service_instance *in_new)
        if (!changed)
                return false;
 
+       in->restart = true;
        instance_stop(in, true);
        instance_config_move(in, in_new);
        return true;