Bug 60337 - Lots of service files have bad chkconfig lines.
Summary: Lots of service files have bad chkconfig lines.
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Red Hat Linux
Classification: Retired
Component: chkconfig
Version: 7.2
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Bill Nottingham
QA Contact: Ben Levenson
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2002-02-25 23:30 UTC by Steven W. Orr
Modified: 2014-03-17 02:25 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2002-02-25 23:30:31 UTC
Embargoed:


Attachments (Terms of Use)

Description Steven W. Orr 2002-02-25 23:30:26 UTC
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-26 00:36:43 UTC
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.