Bug 514039 - apache.sh will not stop cleanly if "pkill httpd" is ran
Summary: apache.sh will not stop cleanly if "pkill httpd" is ran
Keywords:
Status: CLOSED DUPLICATE of bug 449394
Alias: None
Product: Red Hat Enterprise Linux 5
Classification: Red Hat
Component: rgmanager
Version: 5.5
Hardware: All
OS: Linux
low
medium
Target Milestone: rc
: ---
Assignee: Marek Grac
QA Contact: Cluster QE
URL:
Whiteboard:
Depends On:
Blocks: 512055
TreeView+ depends on / blocked
 
Reported: 2009-07-27 18:25 UTC by Shane Bradley
Modified: 2016-04-26 14:46 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2009-08-21 21:06:09 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
Patch that checks for existence of .pid file (778 bytes, patch)
2009-07-27 18:25 UTC, Shane Bradley
no flags Details | Diff

Description Shane Bradley 2009-07-27 18:25:11 UTC
Description of problem:

If a clustered service is running with "apache" as a resource and then
"pkill httpd" is ran the service will got into a failed state.

The reason that service goes into the failed state is because the pid
file was already cleaned up and no longer exist. Thus checking for
existence of the pid file will always fail.

The solution is to only call the "stop_generic $PIDFILE" if the pid
file actual exist.

The service will then go into failed state.

Version-Release number of selected component (if applicable):
rgmanager-2.0.46-1.el5_3.3

How reproducible:
Every time.

Steps to Reproduce:
1. create apache resource in a service
2. start service
3. pkill httpd
4. clustat
  
Actual results:
The service will be in failed state and does not recover correctly.

Expected results:
The service should be restarted correctly.

Additional info:
Patch to resolve the issue is attached to the bz.

Comment 1 Shane Bradley 2009-07-27 18:25:48 UTC
Created attachment 355302 [details]
Patch that checks for existence of .pid file

Comment 2 Lon Hohberger 2009-08-21 17:47:44 UTC
This really looks like a duplicate of 

https://bugzilla.redhat.com/show_bug.cgi?id=449394

Comment 3 Lon Hohberger 2009-08-21 21:06:09 UTC

*** This bug has been marked as a duplicate of bug 449394 ***


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