mirror of
https://github.com/samba-team/samba.git
synced 2025-01-13 13:18:06 +03:00
When shuttind down, we always unconditionally try to remove the natgw address
even if we are not currently the natgw master. This adds extra reliability in case we have stopped previously without removing it proper, but does add spam messages to syslog everytime we shutdowm. Remove these spam messages from pulluting the syslog upon normal shutdown (This used to be ctdb commit cd84da6f247ee46bbab8318298d1cd3cfc87aba9)
This commit is contained in:
parent
14c8228292
commit
0d75856bb7
@ -22,7 +22,7 @@ delete_all() {
|
||||
local _maskbits=`echo $CTDB_NATGW_PUBLIC_IP | cut -d '/' -f2`
|
||||
|
||||
[ -z "$CTDB_NATGW_PUBLIC_IFACE" ] || {
|
||||
delete_ip_from_iface $CTDB_NATGW_PUBLIC_IFACE $_ip $_maskbits
|
||||
delete_ip_from_iface $CTDB_NATGW_PUBLIC_IFACE $_ip $_maskbits 2>/dev/null
|
||||
}
|
||||
delete_ip_from_iface lo $_ip 32
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user