Description of problem: When importing a JBOss AS 7 (7.1.2) server RHQ fails to set the following environment variables in "Start Script Environment Variables" under "Connection Settings": LAUNCH_JBOSS_IN_BACKGROUND JBOSS_PIDFILE These are necessary for creation of a pid-file when starting JBoss from RHQ. Version-Release number of selected component (if applicable): RHQ v 4.5.1 JBoss AS (CE) v 7.1.2 RHEL 6.3 How reproducible: Very. Steps to Reproduce: 1. Launch a jboss AS7 instance with LAUNCH_JBOSS_IN_BACKGROUND and JBOSS_PIDFILE set in environment. 2. Use RHQ to discover and import this server instance. 3. Shutdown server then start it through RHQ Operations. Actual results: PID-file is not created. Expected results: Would not expect pid-file creation since variables are not set. Additional info: Creation of PID-file is important for using shutdown init-scripts, for instance when doing a shutdown of server. Also for operations the pid-file is useful to check pid of a process.
LAUNCH_JBOSS_IN_BACKGROUND and JBOSS_PIDFILE were not in the list of recognized environment variables. Note that for environment variables to be discovered and added to the "Start Script Environment Variables" field in the "Inventory > Connection Settings" tab, they must have been exported in the shell/script calling the AS7 start script. Fixed in master 3e15d81
Bulk closing of issues in old RHQ releases that are in production for a while now. Please open a new issue when running into an issue.