[Pkg-samba-maint] Bug#730763: service stop/restart exit before end

Mathieu Parent math.parent at gmail.com
Fri Nov 29 10:48:04 UTC 2013


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



More information about the Pkg-samba-maint mailing list