summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartin Schwenke <martin@meltin.net>2013-05-27 12:56:41 +1000
committerMartin Schwenke <martin@meltin.net>2013-05-27 15:15:25 +1000
commit1eab9c898c6bd2176d142c24dca7e38b7427a504 (patch)
treed0282f60e18ea9ad21496fb11ad137ecbbcb857b
parent1ab2bbb349ce158d1cb4b3800f60a30058cf92d7 (diff)
downloadsamba-1eab9c898c6bd2176d142c24dca7e38b7427a504.tar.gz
samba-1eab9c898c6bd2176d142c24dca7e38b7427a504.tar.xz
samba-1eab9c898c6bd2176d142c24dca7e38b7427a504.zip
eventscripts: Stop NAT gateway's delete_all() from polluting the log
Every time a node that wasn't the NAT gateway master gets reconfigured something like this appears in the log: ctdbd: 11.natgw: Failed to del 10.0.1.139 on dev eth1 Since this usually fails it is better to mute the error than to have it pollute the log. Signed-off-by: Martin Schwenke <martin@meltin.net> (This used to be ctdb commit 0ca7a98ffef50cbd06849cfbf65fb4a3d668b7bd)
-rwxr-xr-xctdb/config/events.d/11.natgw2
1 files changed, 1 insertions, 1 deletions
diff --git a/ctdb/config/events.d/11.natgw b/ctdb/config/events.d/11.natgw
index c6c45cabf9..9faba8087d 100755
--- a/ctdb/config/events.d/11.natgw
+++ b/ctdb/config/events.d/11.natgw
@@ -28,7 +28,7 @@ delete_all() {
_maskbits="${CTDB_NATGW_PUBLIC_IP#*/}"
[ -z "$CTDB_NATGW_PUBLIC_IFACE" ] || {
- delete_ip_from_iface $CTDB_NATGW_PUBLIC_IFACE $_ip $_maskbits 2>/dev/null
+ delete_ip_from_iface $CTDB_NATGW_PUBLIC_IFACE $_ip $_maskbits >/dev/null 2>&1
}
ip route del 0.0.0.0/0 metric 10 >/dev/null 2>/dev/null