Red Hat Bugzilla – Bug 905000
RFE: RHQ fails to set JBOSS_PIDFILE and LAUNCH_JBOSS_IN_BACKGROUND when importing JBoss AS7
Last modified: 2013-09-03 10:42:11 EDT
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":
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
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.
PID-file is not created.
Would not expect pid-file creation since variables are not set.
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.