Dont exit from checking interfaces once we have found one interface that is not
authorRonnie Sahlberg <ronniesahlberg@gmail.com>
Mon, 9 May 2011 20:19:34 +0000 (06:19 +1000)
committerRonnie Sahlberg <ronniesahlberg@gmail.com>
Mon, 9 May 2011 21:53:37 +0000 (07:53 +1000)
in use by public addresses.   this can happen when we have removed existing interfaces/ip addresses and prevents us from verifying the status of other interfaces

config/events.d/10.interface

index 81eff51961c2baa09b9dc6f7631f44580b4c5d1d..7f5791a9fcf02549159c56c83a3d8602e5412c5c 100755 (executable)
@@ -42,7 +42,7 @@ monitor_interfaces()
 
            ip addr show $IFACE 2>/dev/null >/dev/null || {
                echo Interface $IFACE does not exist but it is used by public addresses.
-               exit 1
+               continue
            }
 
            # These interfaces are sometimes bond devices