1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-11 05:18:09 +03:00

update natgw eventscript to allow you to fore it to update and / or to remove the configuration at runtime

(This used to be ctdb commit deed52b7e4aac94b4d11a8d89d08739e1dfd4ed7)
This commit is contained in:
Ronnie Sahlberg 2009-10-06 16:09:24 +11:00
parent 2fa921ba92
commit 42193cbff8

View File

@ -37,7 +37,7 @@ case $cmd in
ctdb setnatgwstate on
;;
recovered)
recovered|updatenatgw)
MYPNN=`ctdb pnn | cut -d: -f2`
NATGWMASTER=`ctdb natgwlist | head -1 | sed -e "s/ .*//"`
NATGWIP=`ctdb natgwlist | head -1 | sed -e "s/^[^ ]* *//"`
@ -71,7 +71,7 @@ case $cmd in
echo 1 > /proc/sys/net/ipv4/route/flush
;;
shutdown)
shutdown|removenatgw)
delete_all
;;