There is a runable script under
Code:
/opt/jon/Agent/rhq-agent/bin/rhq-agent-wrapper.sh
If I go to this directory and call ./rhq-agent-wrapper.sh, I got
Code:
RHQ Agent (pid 32424) is running
This is normal and correct since the RHQ Agent is running.
Then I create a logical link as follow:
Code:
ln -s /opt/jon/Agent/rhq-agent/bin/rhq-agent-wrapper.sh jon
When I call jon I got the same result as calling ./rhq-agent-wrapper.sh. This is ok as well.
Then I change the .bash_profile under /opt/jon/Agent as follow:
before:
Code:
PATH=$PATH:$HOME/bin
now:
Code:
PATH=$PATH:$HOME/rhq-agent/bin
The $HOME is /opt/jon/Agent
Now is the problem: as I go to another directory such as /opt/jon/Agent
and call jon status I got:
Code:
RHQ Agent (no pidfile) is NOT running
This is wrong.
Someone call tell?