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