Bug 534392 - (RHQ-1193) on server statup not verify only the pid file to be sure that server is on/off...
on server statup not verify only the pid file to be sure that server is on/of...
Product: RHQ Project
Classification: Other
Component: Launch Scripts (Show other bugs)
All All
medium Severity medium (vote)
: ---
: ---
Assigned To: RHQ Project Maintainer
Sunil Kondkar
: FutureFeature, Improvement
Depends On:
  Show dependency treegraph
Reported: 2008-11-28 14:50 EST by Rafael Soares (Tuelho)
Modified: 2010-08-25 07:31 EDT (History)
3 users (show)

See Also:
Fixed In Version:
Doc Type: Enhancement
Doc Text:
Story Points: ---
Clone Of:
OS: Linux Debian JDK. 1.5 Jopr 2.1
Last Closed: 2010-08-25 07:31:26 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Rafael Soares (Tuelho) 2008-11-28 14:50:00 EST
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"

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!

Comment 1 Red Hat Bugzilla 2009-11-10 15:27:47 EST
This bug was previously known as http://jira.rhq-project.org/browse/RHQ-1193
Comment 2 wes hayutin 2010-02-16 12:08:58 EST
mass add of key word FutureFeature to help track
Comment 3 Corey Welton 2010-08-18 11:08:56 EDT
Per triage this is moved to ONQA w/ the expectation that it is fixed.  If not, please reopen, otherwise close
Comment 4 Sunil Kondkar 2010-08-25 07:31:26 EDT
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.

Note You need to log in before you can comment on or make changes to this bug.