Priyo,
Can you try a few things for me please. Verify in your file the following two lines are present sourcing the env variables.
On Apache Server
vi /etc/sysconfig/httpd
PATH=/opt/CA/webagent/bin:{$PATH}
. /opt/CA/webagent/ca_wa_env.sh
After this please stop the web agent as the root user.
service httpd stop
Go to the /tmp directory and verify anything tied to root is removed
Then I want you to validate you have no stuck semaphores or keys with the following.
Execute the command as root
ipcs -a
This will show you all the semaphores and keys
If you have any stuck as root use the ipcrm command to remove them
example
SEMID: 4095
ipcrm -s 4095
For the sem key use the -M flag
ipcrm -M 0324203
Remove these keys and semaphore ids. and then attempt to start the web agent again with
service httpd start
Please let me know. After you remove the semaphore id's and keys verify nothing is listed with
ipcs -a
Thanks,
Adam