Bug 212133

Summary: heartbeat removes unconditionally init-scripts when updating
Product: [Fedora] Fedora Reporter: Dirk Nehring <dnehring>
Component: heartbeatAssignee: Joost Soeterbroek <joost.soeterbroek>
Status: CLOSED NEXTRELEASE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: medium    
Version: 4CC: extras-qa
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2006-10-29 11:30:27 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:

Description Dirk Nehring 2006-10-25 09:23:35 UTC
Description of problem:
Package does not check the installation status when upgrading.

Version-Release number of selected component (if applicable):


How reproducible:
Update to a newer version

Steps to Reproduce:
1. rpm -vhU heartbeat

Additional info:

The spec file should check if it is an update or if it is an deinstallation.
When updating, "chkconfig --del" is executed unconditionally which breaks
existing systems.

Proposed Fix:

-----------------------
%preun
if [ $1 = 0 ] ; then
        service hearbeat stop
        /sbin/chkconfig --del hearbeat
fi

%postun
if [ "$1" -ge "1" ] ; then
        service heartbeat condrestart
fi
-----------------------

Comment 1 Dirk Nehring 2006-10-25 09:26:22 UTC
uups, small typo in the proposed script (hearbeat)

Comment 2 Joost Soeterbroek 2006-10-29 11:30:27 UTC
fixed in 2.0.7-3