mirror of
https://github.com/samba-team/samba.git
synced 2024-12-23 17:34:34 +03:00
ctdb-tests: Use onnode to start/stop local daemons
Signed-off-by: Martin Schwenke <martin@meltin.net> Reviewed-by: Amitay Isaacs <amitay@gmail.com>
This commit is contained in:
parent
db7e4aa3d8
commit
85a4375788
@ -192,17 +192,9 @@ EOF
|
||||
start_ctdb_1 ()
|
||||
{
|
||||
local pnn="$1"
|
||||
local node_dir=$(node_dir "$pnn")
|
||||
local pidfile=$(node_pidfile "$pnn")
|
||||
local conf=$(node_conf "$pnn")
|
||||
local socket=$(node_socket "$pnn")
|
||||
|
||||
CTDBD="${VALGRIND} ctdbd --sloppy-start --nopublicipcheck" \
|
||||
CTDB_BASE="$node_dir" \
|
||||
CTDBD_CONF="$conf" \
|
||||
CTDB_PIDFILE="$pidfile" \
|
||||
CTDB_SOCKET="$socket" \
|
||||
ctdbd_wrapper start
|
||||
onnode "$pnn" ctdbd_wrapper start
|
||||
}
|
||||
|
||||
daemons_start ()
|
||||
@ -218,16 +210,8 @@ daemons_start ()
|
||||
stop_ctdb_1 ()
|
||||
{
|
||||
local pnn="$1"
|
||||
local node_dir=$(node_dir "$pnn")
|
||||
local pidfile=$(node_pidfile "$pnn")
|
||||
local conf=$(node_conf "$pnn")
|
||||
local socket=$(node_socket "$pnn")
|
||||
|
||||
CTDB_BASE="$node_dir" \
|
||||
CTDBD_CONF="$conf" \
|
||||
CTDB_PIDFILE="$pidfile" \
|
||||
CTDB_SOCKET="$socket" \
|
||||
ctdbd_wrapper stop
|
||||
onnode "$pnn" ctdbd_wrapper stop
|
||||
}
|
||||
|
||||
daemons_stop ()
|
||||
|
Loading…
Reference in New Issue
Block a user