ctdb-server: Use find_public_ip_vnn() in a couple of extra places
[samba4-gss.git] / ctdb / tests / UNIT / tool / ctdb.process-exists.001.sh
blobd7dc3b21fe3417595c99e7ebaae9c98817fd7f37
1 #!/bin/sh
3 . "${TEST_SCRIPTS_DIR}/unit.sh"
5 define_test "ctdbd process on node 0"
7 ctdb_test_check_supported_OS "Linux"
9 setup_ctdbd <<EOF
10 NODEMAP
11 0 192.168.20.41 0x0 CURRENT RECMASTER
12 1 192.168.20.42 0x0
13 2 192.168.20.43 0x0
14 EOF
16 dummy_client -s $ctdbd_socket &
17 pid=$!
19 wait_until 10 $CTDB process-exists "$pid"
21 ok "PID $pid exists"
22 simple_test "$pid"
24 kill -9 $pid
26 pid=$(ctdbd_getpid)
27 required_result 1 "PID $pid does not exist"
28 simple_test "$pid"