Package: ctdb
Version: 1.12+git20120201-3

When there are public ips:
- service ctdb stop, exits with return value 2 and may not remove all public ips
- service ctdb restart, doesn't restart the service, exits with return
value 2 and may not remove all public ips

Quick fix:

diff --git a/debian/ctdb.init b/debian/ctdb.init
index 6bd73e6..e3f2eb9 100644
--- a/debian/ctdb.init
+++ b/debian/ctdb.init
@@ -279,7 +279,7 @@ drop_all_public_ips() {
     }

     cat $CTDB_PUBLIC_ADDRESSES | while read IP IFACE REST; do
-       ip addr del $IP dev $IFACE >/dev/null 2>/dev/null
+       ip addr del $IP dev $IFACE >/dev/null 2>/dev/null ||:
     done
 }


I plan to fix this in wheezy.

-- 
Mathieu


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to