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 a1604f679691ec15d4177e1bd2a9a858be22a7ec..8ed53e3a2cc95afba1650a79ae608f23ce1ceb71 100644 (file)
@@ -19,6 +19,8 @@ void
 instance_start(struct service_instance *in)
 {
        in->restart = false;
+       if (!in->valid)
+               return;
 }
 
 static void