Bug 534392 (RHQ-1193)
| Summary: | on server statup not verify only the pid file to be sure that server is on/off... | ||
|---|---|---|---|
| Product: | [Other] RHQ Project | Reporter: | Rafael Soares (Tuelho) <rsoares> |
| Component: | Launch Scripts | Assignee: | RHQ Project Maintainer <rhq-maint> |
| Status: | CLOSED CURRENTRELEASE | QA Contact: | Sunil Kondkar <skondkar> |
| Severity: | medium | Docs Contact: | |
| Priority: | medium | ||
| Version: | unspecified | CC: | cwelton, jpviragine, rsoares |
| Target Milestone: | --- | Keywords: | FutureFeature, Improvement |
| Target Release: | --- | ||
| Hardware: | All | ||
| OS: | All | ||
| URL: | http://jira.rhq-project.org/browse/RHQ-1193 | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Enhancement | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: |
OS: Linux Debian JDK. 1.5 Jopr 2.1
|
|
| Last Closed: | 2010-08-25 11:31:26 UTC | Type: | --- |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
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. |
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!