Skip to content

Commit

Permalink
scripts: Move dropping of all IPs from initscript to "init" event
Browse files Browse the repository at this point in the history
It makes sense to do this in the "init" event and make the initscript
less complicated.

Signed-off-by: Martin Schwenke <[email protected]>

(This used to be ctdb commit 0b77cceb49a30a181063adc7868d42d2851318e8)
  • Loading branch information
martin-schwenke committed Jun 20, 2013
1 parent bee02e0 commit 9614681
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 0 additions & 4 deletions ctdb/config/ctdb.init
Original file line number Diff line number Diff line change
Expand Up @@ -247,10 +247,6 @@ start() {

export_debug_variables

# make sure we drop any ips that might still be held if previous
# instance of ctdb got killed with -9 or similar
drop_all_public_ips 2>&1 | script_log "ctdb.init"

if select_tdb_checker ; then
check_persistent_databases || return $?
check_non_persistent_databases
Expand Down
4 changes: 4 additions & 0 deletions ctdb/config/events.d/00.ctdb
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,10 @@ case "$1" in
echo "mkdir -p $CTDB_VARDIR/state - failed - $ret"
exit $ret
}

# make sure we drop any ips that might still be held if
# previous instance of ctdb got killed with -9 or similar
drop_all_public_ips
;;

setup)
Expand Down

0 comments on commit 9614681

Please sign in to comment.