How to start 2 agents on the same UNIX box?

Document ID : KB000020108
Last Modified Date : 14/02/2018
Show Technical Document Details

Description:

When installing multiple agent on the same UNIX box, only one starts, the other are getting:
WAAE Agent Already running (pid xxxxx) FAILED
This knowledge documentation explains how to get past this matter.

Solution:

Change the cybAgent script in the agent directory:
Modify the last line from:
exec $PWD/cybAgent.bin "$@"
by :
exec `pwd`/cybAgent.bin "$@"

Instead of taking the PWD environment variable, that is common to all agents, the script will actually execute the unix pwd command and take the correct directory. Multiple agents can then coexist.