Fix watchdog timeout variable
The meson option to define the watchdog timeout was written in different
places with different names, resulting in the service file not having
the configured timeout, and the bmcweb daemon not displaying the warning
when the watchdog was disabled at runtime, but enabled at compile time.
Tested:
- After building, the systemd service file contains the configured
timeout
- If the watchdog is disabled during runtime, the message is displayed
properly
Change-Id: I21d23b02bc13e21a516f04527dbda5b4ec0659f1
Signed-off-by: Roger G. Coscojuela <roger.gili-coscojuela@sipearl.com>
diff --git a/config/meson.build b/config/meson.build
index efa9cca..40bee7f 100644
--- a/config/meson.build
+++ b/config/meson.build
@@ -177,7 +177,9 @@
configuration: configuration_data(
{
'MESON_INSTALL_PREFIX': get_option('prefix'),
- 'WATCHDOG_TIMEOUT_SECONDS': get_option('watchdog-timeout-seconds'),
+ 'BMCWEB_WATCHDOG_TIMEOUT_SECONDS': get_option(
+ 'watchdog-timeout-seconds',
+ ),
},
),
)