ctdb: use properly configured ctdb in 99.timeout
authorMichael Adam <obnox@samba.org>
Wed, 8 Jun 2016 11:05:03 +0000 (13:05 +0200)
committerMartin Schwenke <martins@samba.org>
Sat, 11 Jun 2016 04:20:14 +0000 (06:20 +0200)
Signed-off-by: Michael Adam <obnox@samba.org>
Reviewed-by: Martin Schwenke <martin@meltin.net>
ctdb/config/events.d/99.timeout

index 2a6495a619360d322c6f318d95928477d403908b..c18475fec64bef8d443eadd7d3c464e825225380 100755 (executable)
@@ -14,7 +14,7 @@ loadconfig ctdb
 
 case "$1" in
     monitor)
-       TIMEOUT=$(ctdb getvar EventScriptTimeout | awk '{print $3}')
+       TIMEOUT=$($CTDB getvar EventScriptTimeout | awk '{print $3}')
        echo "sleeping for $((TIMEOUT * 2)) seconds..."
        sleep $((TIMEOUT * 2))
        ;;