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_COMMANDvalue 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 of over 48,000 articles and solutions.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
