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 8c3af4b45c0016b2fe2df07c0a8f65a85343c418..a1604f679691ec15d4177e1bd2a9a858be22a7ec 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;