diff options
author | Martin Schwenke <martin@meltin.net> | 2009-11-19 16:48:19 +1100 |
---|---|---|
committer | Martin Schwenke <martin@meltin.net> | 2009-11-19 16:48:19 +1100 |
commit | a4a048b5cdb730dde5ebe0c153e90ec17569c0cc (patch) | |
tree | 33a70235c6cc37b8299202d64e7ea13a17072c58 /ctdb/config/events.d/01.reclock | |
parent | ee513c1ba2292b86f1d3566a277570467e9d85c2 (diff) | |
download | samba-a4a048b5cdb730dde5ebe0c153e90ec17569c0cc.tar.gz samba-a4a048b5cdb730dde5ebe0c153e90ec17569c0cc.tar.xz samba-a4a048b5cdb730dde5ebe0c153e90ec17569c0cc.zip |
Now vaguely tested initscript updates.
Signed-off-by: Martin Schwenke <martin@meltin.net>
(This used to be ctdb commit f1e350f9edb74cc44b6c5be4c062fd93e98ba8c4)
Diffstat (limited to 'ctdb/config/events.d/01.reclock')
-rwxr-xr-x | ctdb/config/events.d/01.reclock | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/ctdb/config/events.d/01.reclock b/ctdb/config/events.d/01.reclock index 3d335507dd..1b6cbf09e4 100755 --- a/ctdb/config/events.d/01.reclock +++ b/ctdb/config/events.d/01.reclock @@ -10,15 +10,16 @@ case $cmd in ;; monitor) + RECLOCKFILE=$(ctdb -Y getreclock) + ctdb_counter_incr - (ctdb_counter_limit 200 >/dev/null 2>&1) || { - echo "Reclock file \"$RECLOCKFILE\" can not be accessed. Shutting down." + (ctdb_check_counter_limit 200 >/dev/null 2>&1) || { + echo "Reclock file $RECLOCKFILE\" can not be accessed. Shutting down." df sleep 1 ctdb shutdown } - RECLOCKFILE=$(ctdb -Y getreclock) [ -z "$RECLOCKFILE" ] && { # we are not using a reclock file ctdb_counter_init @@ -34,8 +35,7 @@ case $cmd in } ) >/dev/null 2>/dev/null & - - ctdb_counter_limit 3 + ctdb_check_counter_limit 3 quiet ;; status) ctdb_checkstatus || exit $? |