mirror of
https://github.com/samba-team/samba.git
synced 2025-03-01 04:58:35 +03:00
scripts: Move drop_all_public_ips() to the functions file
... so it can be improved and used elsewhere. Signed-off-by: Martin Schwenke <martin@meltin.net> (This used to be ctdb commit b23c30253cc9eb274b895cac0f8c65245ba0a200)
This commit is contained in:
parent
ef7329a415
commit
0eb757329e
@ -219,12 +219,6 @@ wait_until_ready () {
|
||||
|
||||
ctdbd=${CTDBD:-/usr/sbin/ctdbd}
|
||||
|
||||
drop_all_public_ips() {
|
||||
while read _ip _iface _rest; do
|
||||
ip addr del $_ip dev $_iface >/dev/null 2>&1
|
||||
done <"${CTDB_PUBLIC_ADDRESSES:-/dev/null}"
|
||||
}
|
||||
|
||||
start() {
|
||||
echo -n $"Starting ctdbd service: "
|
||||
|
||||
|
@ -939,6 +939,12 @@ delete_ip_from_iface()
|
||||
# and doing anything here will affect the return code.
|
||||
}
|
||||
|
||||
drop_all_public_ips() {
|
||||
while read _ip _iface _rest; do
|
||||
ip addr del $_ip dev $_iface >/dev/null 2>&1
|
||||
done <"${CTDB_PUBLIC_ADDRESSES:-/dev/null}"
|
||||
}
|
||||
|
||||
########################################################
|
||||
# some simple logic for counting events - per eventscript
|
||||
# usage: ctdb_counter_init
|
||||
|
Loading…
x
Reference in New Issue
Block a user