From 3935abf1871d847bc1fc43107bff4947e58ab4c0 Mon Sep 17 00:00:00 2001 From: Charles Short Date: Tue, 13 Sep 2022 08:28:26 -0400 Subject: [PATCH] mtcAgent: Run in active mode Run the mtcAgent with active mode by default. This was done because it was being observed that mtcAgent was causing an increased CPU load under Debian. Story: 2009964 Task: 46202 Test-Plan PASS Build playbookconfig package PASS Boot ISO PASS Bootstrap simplex PASS Check for running mtcAgent PASS Install and provision CentOS 2+3 Standard System Signed-off-by: Charles Short Change-Id: If4278ab6e14cd30c995ce5004004fab955ad23eb --- mtce/src/scripts/mtcAgent | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/mtce/src/scripts/mtcAgent b/mtce/src/scripts/mtcAgent index 80602985..df4aa88a 100755 --- a/mtce/src/scripts/mtcAgent +++ b/mtce/src/scripts/mtcAgent @@ -337,12 +337,6 @@ mtcAgent_start () { RUN_OPT_DEBUG="" fi - if [ ${OCF_RESKEY_mode} = "passive" ] ; then - RUN_OPT_MODE="-p" - else - RUN_OPT_MODE="" - fi - if [ ${OCF_RESKEY_logging} = "true" ] ; then RUN_OPT_LOG="-l" else @@ -353,7 +347,7 @@ mtcAgent_start () { pid="" # Try to Start the daemon - ${mydaemon} ${RUN_OPT_STATE} ${RUN_OPT_LOG} ${RUN_OPT_MODE} ${RUN_OPT_DEBUG} + ${mydaemon} ${RUN_OPT_STATE} ${RUN_OPT_LOG} ${RUN_OPT_DEBUG} rc=$? # verify it was started and set return code appropriately