ctdb_test_eventscript_install
# We need this for later, so we know how long to sleep.
-try_command_on_node 0 $CTDB getvar MonitorInterval
+try_command_on_node any $CTDB getvar MonitorInterval
monitor_interval="${out#*= }"
#echo "Monitor interval on node $test_node is $monitor_interval seconds."
try_command_on_node $test_node $CTDB getvar TickleUpdateInterval
sleep_for "${out#*= }"
-if try_command_on_node 0 "test -r /etc/ctdb/events.d/61.nfstickle" ; then
+if try_command_on_node any "test -r /etc/ctdb/events.d/61.nfstickle" ; then
echo "Trying to determine NFS_TICKLE_SHARED_DIRECTORY..."
f="/etc/sysconfig/nfs"
- try_command_on_node -v 0 "[ -r $f ] && sed -n -e s@^NFS_TICKLE_SHARED_DIRECTORY=@@p $f" || true
+ try_command_on_node -v any "[ -r $f ] && sed -n -e s@^NFS_TICKLE_SHARED_DIRECTORY=@@p $f" || true
nfs_tickle_shared_directory="${out:-/gpfs/.ctdb/nfs-tickles}"
try_command_on_node $test_node hostname
test_hostname=$out
- try_command_on_node -v 0 cat "${nfs_tickle_shared_directory}/$test_hostname/$test_ip"
+ try_command_on_node -v any cat "${nfs_tickle_shared_directory}/$test_hostname/$test_ip"
else
echo "That's OK, we'll use \"ctdb gettickles\", which is newer..."
- try_command_on_node -v 0 "ctdb -Y gettickles $test_ip $test_port"
+ try_command_on_node -v any "ctdb -Y gettickles $test_ip $test_port"
fi
if [ "${out/${src_socket}/}" != "$out" ] ; then