Bug 296351 - chkconfig resolves LSB dependencies to latest service when duplicate Provides exist
Summary: chkconfig resolves LSB dependencies to latest service when duplicate Provides...
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Red Hat Enterprise Linux 4
Classification: Red Hat
Component: chkconfig
Version: 4.0
Hardware: All
OS: Linux
low
low
Target Milestone: ---
: ---
Assignee: Bill Nottingham
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2007-09-19 14:03 UTC by Harrison Fisk
Modified: 2014-03-17 03:08 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2007-09-19 14:50:57 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
Example init.d script which gets set to S99/K01 due to $network dependency (10.62 KB, application/octet-stream)
2007-09-19 14:03 UTC, Harrison Fisk
no flags Details

Description Harrison Fisk 2007-09-19 14:03:17 UTC
Description of problem:

When chkconfig is deciding on the priority order using LSB dependency checking,
it uses the latest dependency value if there are multiple services that
'Provides' the dependency.

For example:

If you have a service that depends on $network, $network is provided by two
different services by default on RHEL 4, 'network' and 'NetworkManager'.

network has: chkconfig: 2345 10 90
NetworkManager has: chkconfig: 345 98 02

Due to this bug any service with a dependency on $network would end up as 99 01,
which causes other things that have a dependency on that service to have a problem.

chkconfig should resolve the dependency on the first service, not the last one
to prevent this.

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

1.3.13.4

How reproducible:

With the appropriate setup, it occurs every time.

Steps to Reproduce:
1.  Copy the attached file to /etc/init.d/
2.  Verify you have both network and NetworkManager on the system
3.  Run chkconfig --add mysql
  
Actual results:

S99mysql and K01mysql are created in the appropriate places.

Expected results:

Earlier starting and later stopping.  Without NetworkManager, I get K36mysql and
S64mysql.

Additional info:

Comment 1 Harrison Fisk 2007-09-19 14:03:17 UTC
Created attachment 199571 [details]
Example init.d script which gets set to S99/K01 due to $network dependency

Comment 2 Bill Nottingham 2007-09-19 14:50:57 UTC
This is fixed in a later update by having NetworkManager no longer provide
$network. - we're not planning on changing chkconfig for RHEL 4 at this time.


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