Do not fail the takeip event if the "ip addr add ..." command failed.
[sahlberg/ctdb.git] / config / events.d / 10.interface
index 15e55618d1538a906c1423a3537cd427ffd518bf..4d070777269bb86b5f73b29ad252c66c92c23f99 100755 (executable)
@@ -59,7 +59,6 @@ case $cmd in
        }
        /sbin/ip addr add $ip/$maskbits dev $iface || {
                 echo "Failed to add $ip/$maskbits on dev $iface"
-                exit 1
        }
        # cope with the script being killed while we have the interface blocked
        iptables -D INPUT -i $iface -d $ip -j DROP 2> /dev/null