|
|
15862b |
From 9134a62cec26106a0540309f60db9a420e7488b6 Mon Sep 17 00:00:00 2001
|
|
|
15862b |
From: Oyvind Albrigtsen <oalbrigt@redhat.com>
|
|
|
15862b |
Date: Wed, 19 Oct 2016 12:02:06 +0200
|
|
|
15862b |
Subject: [PATCH] Delay: set default startdelay lower than start timeout to
|
|
|
15862b |
avoid it timing out before starting with default values
|
|
|
15862b |
|
|
|
15862b |
---
|
|
|
15862b |
heartbeat/Delay | 6 +++---
|
|
|
15862b |
1 file changed, 3 insertions(+), 3 deletions(-)
|
|
|
15862b |
|
|
|
15862b |
diff --git a/heartbeat/Delay b/heartbeat/Delay
|
|
|
15862b |
index 9cfa939..f9d303b 100755
|
|
|
15862b |
--- a/heartbeat/Delay
|
|
|
15862b |
+++ b/heartbeat/Delay
|
|
|
15862b |
@@ -14,7 +14,7 @@
|
|
|
15862b |
# OCF_RESKEY_mondelay
|
|
|
15862b |
#
|
|
|
15862b |
#
|
|
|
15862b |
-# OCF_RESKEY_startdelay defaults to 30 (seconds)
|
|
|
15862b |
+# OCF_RESKEY_startdelay defaults to 20 (seconds)
|
|
|
15862b |
# OCF_RESKEY_stopdelay defaults to $OCF_RESKEY_startdelay
|
|
|
15862b |
# OCF_RESKEY_mondelay defaults to $OCF_RESKEY_startdelay
|
|
|
15862b |
#
|
|
|
15862b |
@@ -55,7 +55,7 @@ This script is a test resource for introducing delay.
|
|
|
15862b |
How long in seconds to delay on start operation.
|
|
|
15862b |
</longdesc>
|
|
|
15862b |
<shortdesc lang="en">Start delay</shortdesc>
|
|
|
15862b |
-<content type="integer" default="30" />
|
|
|
15862b |
+<content type="integer" default="20" />
|
|
|
15862b |
</parameter>
|
|
|
15862b |
|
|
|
15862b |
<parameter name="stopdelay" unique="0" required="0">
|
|
|
15862b |
@@ -195,7 +195,7 @@ if [ $# -ne 1 ]; then
|
|
|
15862b |
exit $OCF_ERR_ARGS
|
|
|
15862b |
fi
|
|
|
15862b |
|
|
|
15862b |
-: ${OCF_RESKEY_startdelay=30}
|
|
|
15862b |
+: ${OCF_RESKEY_startdelay=20}
|
|
|
15862b |
: ${OCF_RESKEY_stopdelay=$OCF_RESKEY_startdelay}
|
|
|
15862b |
: ${OCF_RESKEY_mondelay=$OCF_RESKEY_startdelay}
|
|
|
15862b |
|