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 <charles.short@windriver.com>
Change-Id: If4278ab6e14cd30c995ce5004004fab955ad23eb
This commit is contained in:
Charles Short 2022-09-13 08:28:26 -04:00 committed by Eric MacDonald
parent ed1704d131
commit 3935abf187
1 changed files with 1 additions and 7 deletions

View File

@ -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