Starting JBoss ON agent as a service on Linux fails due to rhq-agent.pid being written to the wrong location when using su with its -l or --login option
Issue
- pid file is not created in the correct directory
- agent appears to hang
Environment
- JBoss Operations Network (ON) 3.1
- Red Hat Enterprise Linux (RHEL)
- Starting JBoss ON agent using
RHQ_AGENT_START_COMMAND
value ofsu -m -l jboss -c '${RHQ_AGENT_HOME}/bin/rhq-agent.sh'
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.