Bug 170367
Summary: | chkconfig-1.3.13.2-1 bug when use LSB compliant "Required-Start:" | ||
---|---|---|---|
Product: | Red Hat Enterprise Linux 3 | Reporter: | Jay Turner <jturner> |
Component: | chkconfig | Assignee: | Bill Nottingham <notting> |
Status: | CLOSED ERRATA | QA Contact: | Ben Levenson <benl> |
Severity: | medium | Docs Contact: | |
Priority: | medium | ||
Version: | 3.0 | CC: | gajanovic_dan, olle, poelstra, rvokal, srevivo, tao |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | RHBA-2006-0017 | Doc Type: | Bug Fix |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2006-03-15 15:44:25 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: | |||
Bug Depends On: | |||
Bug Blocks: | 168424 |
Description
Jay Turner
2005-10-11 00:46:01 UTC
Looking at chkconfig.c v1.3.13.2, line 171, we have: if (s.isLSB && (s.sPriority <= -1) && (s.kPriority <= -1)) frobDependencies(&s); Consider initd scripts foo and bar: # foo # chkconfig: 35 95 10 ### BEGIN INIT INFO # Required-Start: network ### END INIT INFO and # bar # chkconfig: 35 95 10 ### BEGIN INIT INFO # Required-Stop: network ### END INIT INFO In both cases, only one of Required-Start/Required-Stop is provided (which is valid according to the LSB spec going back as far as 1.0). However, after readServiceInfo(), we will have (s.isLSB, s.sPriority, s.kPriority) set to (1, -1, 10) and (1, 95, -1), respectively. In both cases, addService() concludes that the script is not LSB-compliant, and proceeds to use -1 verbatim. The result will be S-1foo and K-1bar. If chkconfig decides that it will ignore the LSB-style directives, then it should at least not let them corrupt the information provided by '# chkconfig:' and vice versa. In prior versions of chkconfig, foo and bar used to be installed properly using the info provided by '# chkconfig:'. 1.3.13.2 breaks these scripts. Built in 1.3.13.3. An advisory has been issued which should help the problem described in this bug report. This report is therefore being closed with a resolution of ERRATA. For more information on the solution and/or where to find the updated files, please follow the link below. You may reopen this bug report if the solution does not work for you. http://rhn.redhat.com/errata/RHBA-2006-0017.html |