git.samba.org
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
72e2380
)
update the natgw eventscript to set the NATGW capability when this feature is used
author
Ronnie Sahlberg
<ronniesahlberg@gmail.com>
Tue, 28 Jul 2009 00:00:33 +0000
(10:00 +1000)
committer
Ronnie Sahlberg
<ronniesahlberg@gmail.com>
Tue, 28 Jul 2009 00:00:33 +0000
(10:00 +1000)
This does not modify any behaviour of the daemon itself other than showing this flag as ON in the ctdeb getcapabilities output
(This used to be ctdb commit
fb337c151bd16ad5ad0c99431224451979d8c651
)
ctdb/config/events.d/11.natgw
patch
|
blob
|
history
diff --git
a/ctdb/config/events.d/11.natgw
b/ctdb/config/events.d/11.natgw
index b994308d488221b57cae2e08706966d84603444b..63820561db6a9ebbd14fc34bde0479736268c101 100644
(file)
--- a/
ctdb/config/events.d/11.natgw
+++ b/
ctdb/config/events.d/11.natgw
@@
-33,6
+33,8
@@
case $cmd in
echo 3 > /proc/sys/net/ipv4/conf/all/arp_ignore
# do not send out arp requests from loopback addresses
echo 2 > /proc/sys/net/ipv4/conf/all/arp_announce
+ # update capabilities to show we are using natgw
+ ctdb setnatgwstate on
;;
recovered)