Bug 60337 - Lots of service files have bad chkconfig lines.
Lots of service files have bad chkconfig lines.
Status: CLOSED NOTABUG
Product: Red Hat Linux
Classification: Retired
Component: chkconfig (Show other bugs)
7.2
All Linux
medium Severity medium
: ---
: ---
Assigned To: Bill Nottingham
Ben Levenson
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2002-02-25 18:30 EST by Steven W. Orr
Modified: 2014-03-16 22:25 EDT (History)
1 user (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2002-02-25 18:30:31 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description Steven W. Orr 2002-02-25 18:30:26 EST
From Bugzilla Helper:
User-Agent: Mozilla/4.78 [en] (X11; U; Linux 2.4.9-ac10 i686)

Description of problem:
The chkconfig line in a lot of the service files are of  the form:
chkconfig: - NN MM
This causes chkconfig to not work correctly. The syntax that seems to work
requires that the syntax be:

chkconfig: 2345 NN MM


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


How reproducible:
Always

Steps to Reproduce:
1. chkconfig --add service
2.
3.
	

Actual Results:  No start script is created.

Additional info:

The files with the bad syntax are:
[root@saturn init.d]# grep 'chkconfig: -' *
httpd:# chkconfig: - 85 15
ldap:# chkconfig: - 39 61
mysqld:# chkconfig: - 78 12
nfs:# chkconfig: - 60 20
nscd:# chkconfig: - 30 74
ntpd:# chkconfig: - 26 74
radvd:# chkconfig: - 54 46
rhnsd:# chkconfig: - 97 03
rwhod:# chkconfig: - 60 20
snmpd:# chkconfig: - 50 50
ypbind:# chkconfig: - 27 73
[root@saturn init.d]# 
These correspond to:
[root@saturn init.d]# grep 'chkconfig: -' * | awk -F: '{print $1}' | xargs rpm
-qf 
apache-1.3.22-2
openldap-servers-2.0.21-1
mysql-server-3.23.41-1
nfs-utils-0.3.1-13.7.2.1
nscd-2.2.4-13
ntp-4.1.0-4
radvd-0.6.2pl4-1
up2date-2.7.2-7.x.6
rwho-0.17-11
ucd-snmp-4.2.1-7
ypbind-1.8-1
Comment 1 Bill Nottingham 2002-02-25 19:36:43 EST
Um, no.

'-' means don't start by default. It's a perfectly sane option.

To turn the script on, do 'chkconfig --level <levels> <service> on', where 
<levels> is the levels you want it on in, for example '345' for runlevels 3, 4,
and 5.

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