This service will be undergoing maintenance at 00:00 UTC, 2017-10-23 It is expected to last about 30 minutes
Bug 115276 - %preun in .spec for distcache causes removal failure
%preun in .spec for distcache causes removal failure
Status: CLOSED DUPLICATE of bug 110115
Product: Red Hat Enterprise Linux 3
Classification: Red Hat
Component: distcache (Show other bugs)
All Linux
medium Severity medium
: ---
: ---
Assigned To: Joe Orton
Joe Orton
Depends On:
  Show dependency treegraph
Reported: 2004-02-09 18:32 EST by Chris Van Hoof
Modified: 2007-11-30 17:07 EST (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2006-02-21 14:01:09 EST
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 Chris Van Hoof 2004-02-09 18:32:27 EST
Description of problem:

When removing the distcache rpm on RHEL3 it will fail with chkconfig

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

Version 0.4.2-3 tested

How reproducible:


Steps to Reproduce:
1. Attempt to remove distcache with rpm -e
2. distcache-devel will need to be removed first or use --nodeps
Actual results:

The rpm is not removed and fails.

Expected results:

Full rpm removal.

Additional info:

The failure occurs here:

if [ $1 = 0 ]; then
        /sbin/service dc_server stop
        /sbin/service dc_client stop
        /sbin/chkconfig --del dc_server dc_client

--del does not take two arguments.  Only one per deletion.  Adding a
new line under corrects the problem:

if [ $1 = 0 ]; then
        /sbin/service dc_server stop
        /sbin/service dc_client stop
        /sbin/chkconfig --del dc_client
        /sbin/chkconfig --del dc_server
Comment 1 Chris Van Hoof 2004-02-09 18:34:10 EST
error/usage is as follows:

(#:~)- rpm -e distcache
chkconfig version 1.3.8 - Copyright (C) 1997-2000 Red Hat, Inc.
This may be freely redistributed under the terms of the GNU Public
usage:   chkconfig --list [name]
         chkconfig --add <name>
         chkconfig --del <name>
         chkconfig [--level <levels>] <name> <on|off|reset>)
error: %preun(distcache-0.4.2-3) scriptlet failed, exit status 1
Comment 2 Chris Van Hoof 2004-02-09 18:35:18 EST
Also submitting this through SEG.
Comment 3 Joe Orton 2004-02-10 02:33:05 EST

*** This bug has been marked as a duplicate of 110115 ***
Comment 4 Red Hat Bugzilla 2006-02-21 14:01:09 EST
Changed to 'CLOSED' state since 'RESOLVED' has been deprecated.

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