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

Solution Verified - Updated -

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 of su -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.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content