In the second scenario, you must change the SM_BROKER_DEFAULT host variable in the runcmd_env.sh file and change the --startmode value.
-
Change the SM_BROKER_DEFAULT host variable in the runcmd_env.sh file, which is located in the BASEDIR/smarts/local/conf directory:
SM_BROKER_DEFAULT=<host>:<value>
-
Additionally, you must change the --startmode value in the sm_service install Broker command line from runonce to disable.
Use the sm_service show action with the --cmdline option to display the existing install Broker command line.
BASEDIR/smarts /bin/sm_service show --cmdline ic-broker BASEDIR/smarts /bin/sm_service install --startmode=runonce --env=SM_CLIENTCONNECT=brokerConnect.conf ic-broker BASEDIR/smarts /bin/brstart --port=<PORT> --output --restore= BASEDIR/smarts /local/repos/broker/broker.rps t BASEDIR/smarts /bin/sm_service install --force --startmode=disable --env=SM_CLIENTCONNECT=brokerConnect.conf ic-broker BASEDIR/smarts /bin/brstart --port=<PORT> --output --restore= BASEDIR/smarts /local/repos/broker/broker.rps s