do not start instances with invalid config
authorFelix Fietkau <nbd@openwrt.org>
Sun, 24 Jun 2012 17:30:05 +0000 (19:30 +0200)
committerFelix Fietkau <nbd@openwrt.org>
Sun, 24 Jun 2012 17:30:05 +0000 (19:30 +0200)
instance.c

index a1604f6..8ed53e3 100644 (file)
@@ -19,6 +19,8 @@ void
 instance_start(struct service_instance *in)
 {
        in->restart = false;
+       if (!in->valid)
+               return;
 }
 
 static void