The function check_status from rhq-server.sh is called by start and verify if the pid file exists and if the pid is running to decide if start or not the server. ... check_status () { if [ -f "$PIDFILE" ]; then PID=`cat $PIDFILE` if [ -n "$PID" ] && kill -0 $PID 2>/dev/null ; then STATUS="RHQ Server (pid $PID) is $1" RUNNING=1 else .... When the rhq-server's platform shutdown or his process is killed the pid file remains intact. When rhq-server is started again this verification may "fails" because the pid coincidently may represent other process and the follow message is returned by script: "RHQ Server (pid xxxx) is running". And then rhq-server will not be started!
This bug was previously known as http://jira.rhq-project.org/browse/RHQ-1193
mass add of key word FutureFeature to help track
Per triage this is moved to ONQA w/ the expectation that it is fixed. If not, please reopen, otherwise close
Tested on jon-2.4.0.GA Killed the rhq-server process. Verified the server status as 'RHQ Server (pid 25578) is NOT running'. The pid file remains intact showing pid 25578. When tried to start rhq-server again, it displayed 'RHQ Server (pid 25814) is starting'. rhq server is started successfully.