Bug 619102

Summary: Cumin does not shutdown when uninstalled
Product: Red Hat Enterprise MRG Reporter: Jan Sarenik <jsarenik>
Component: cuminAssignee: Justin Ross <jross>
Status: CLOSED ERRATA QA Contact: Jan Sarenik <jsarenik>
Severity: medium Docs Contact:
Priority: medium    
Version: DevelopmentCC: jross
Target Milestone: 1.3   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 595746    

Description Jan Sarenik 2010-07-28 15:02:26 UTC
Cumin process is still running after the package was uninstalled
i.e. there is no preuninstall hook which would stop it first.

How reproducible: 100%

Steps to Reproduce:
1. yum groupinstall "MRG Management"
2. cumin-database install
3. service cumin start
4. rpm -e cumin
  
Actual results: The cumin processes are still running.
Expected results: Cumin should be shut down before uninstalled.

Additional info:
  For comparison, see output of rpm -q --scripts for cumin
  and postgresql-server (or sysklogd).

Comment 2 Justin Ross 2010-09-10 16:07:01 UTC
Fixed at 0:0.1.4267-1.

Comment 3 Jan Sarenik 2010-09-14 10:00:20 UTC
Verified in cumin-0.1.4279-1.el5

$ rpm -q --scripts cumin
... SNIP ...
preuninstall scriptlet (using /bin/sh):
if [ $1 = 0 ]; then
    /sbin/service cumin stop >/dev/null 2>&1
    /sbin/chkconfig --del cumin
fi