1
0
mirror of https://github.com/samba-team/samba.git synced 2025-03-22 02:50:28 +03:00

eventscripts: Remove use of "stopped" event

Use "ipreallocated" instead.  The "stopped" event pre-dates the
"ipreallocated" event.  The only way of stopping a node is via the
ctdb tool, which explicitly causes a takeover run to occur after the
node is stopped.  The takeover run will generate an "ipreallocated"
event.

Signed-off-by: Martin Schwenke <martin@meltin.net>

(This used to be ctdb commit 978d4a0d6d8c9877b23f72e3a7b78c1245d16908)
This commit is contained in:
Martin Schwenke 2013-02-21 14:17:09 +11:00 committed by Amitay Isaacs
parent 745c6bc363
commit fb028a208c
2 changed files with 2 additions and 2 deletions

View File

@ -98,7 +98,7 @@ case "$1" in
echo 1 > /proc/sys/net/ipv4/route/flush
;;
shutdown|stopped|removenatgw)
shutdown|removenatgw)
delete_all
;;

View File

@ -40,7 +40,7 @@ case "$1" in
echo 1 > /proc/sys/net/ipv4/route/flush
;;
recovered|stopped|ipreallocated)
recovered|ipreallocated)
# kill off any tcp connections
ipvsadm -D -t $CTDB_LVS_PUBLIC_IP:0
ipvsadm -D -u $CTDB_LVS_PUBLIC_IP:0