File bug-1047372_sbd-SBD_WATCHDOG-compatibility.patch of Package sbd
commit e216a13f71c86d3ef7721a499972beffe388ba5f
Author: Gao,Yan <ygao@suse.com>
Date: Thu Jun 29 17:52:31 2017 +0200
Fix: sbd-inquisitor: Respect the obsolete option SBD_WATCHDOG for backward compatibility
SBD_WATCHDOG option has been dropped from sbd.sysconfig example.
Re-enabling the support only in the code for backward compatibility.
diff --git a/src/sbd-inquisitor.c b/src/sbd-inquisitor.c
index 3c3a5a0..2ef7c4b 100644
--- a/src/sbd-inquisitor.c
+++ b/src/sbd-inquisitor.c
@@ -862,6 +862,13 @@ int main(int argc, char **argv, char **envp)
watchdogdev = strdup(value);
}
+ /* SBD_WATCHDOG has been dropped from sbd.sysconfig example.
+ * This is for backward compatibility. */
+ value = getenv("SBD_WATCHDOG");
+ if(value) {
+ watchdog_use = crm_is_true(value);
+ }
+
value = getenv("SBD_WATCHDOG_TIMEOUT");
if(value) {
timeout_watchdog = crm_get_msec(value) / 1000;