2 # script to check accessibility to the reclock file on a node
13 RECLOCKFILE
=$
(ctdb
-Y getreclock
)
16 (ctdb_check_counter_limit
200 >/dev
/null
2>&1) ||
{
17 echo "Reclock file $RECLOCKFILE\" can not be accessed. Shutting down."
23 [ -z "$RECLOCKFILE" ] && {
24 # we are not using a reclock file
29 # try stat the reclock file as a background process
30 # so that we dont block in case the cluster filesystem is unavailable
32 stat
$RECLOCKFILE && {
33 # we could stat the file, reset the counter
36 ) >/dev
/null
2>/dev
/null
&
38 ctdb_check_counter_limit
3 quiet
42 ctdb_standard_event_handler
"$@"