Bug 481198

Summary: Initscript metadata parsing bug?
Product: [Fedora] Fedora Reporter: Eric Sandeen <esandeen>
Component: chkconfigAssignee: Bill Nottingham <notting>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: low    
Version: 10CC: notting, rvokal
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
: 481212 (view as bug list) Environment:
Last Closed: 2009-01-22 19:23:13 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: 481212    

Description Eric Sandeen 2009-01-22 18:02:06 UTC
The lcdproc0.5.2-7.fc10.x86_64 package contains initscripts with only the LSB-style metadata:

#### BEGIN INIT INFO
# Provides:          LCDd
# Required-Start:    $syslog $local_fs $network $remote_fs
# Required-Stop:     $syslog $local_fs $network $remote_fs
# Default-Start:     2 3 4 5
# Default-Stop:      S 0 1 6
# Short-Description: LCDproc Server Daemon
# Description:       LSB init script for LCDd, the display
#                    server daemon in the LCDproc suite
### END INIT INFO

When this is chkconfig --add'd, I get things like:

# ls /etc/rc3.d | grep -i lcd
S-1LCDd
S-1lcdproc

(not the dash) and also, the scripts are not visible via --list:

[root@mythbox ~]# chkconfig --list | grep lcdproc
[root@mythbox ~]#

If LSB-only metadata isn't supported, or if the format is wrong, we can bounce this to lcdproc, otherwise maybe this is a bug in initscripts?

Comment 1 Eric Sandeen 2009-01-22 18:02:52 UTC
oops, "not the dash" was supposed to be "note the dash" :)

Comment 2 Bill Nottingham 2009-01-22 19:05:11 UTC
"BEGIN INIT INFO" needs to have only 3 '#' marks, not 4.

Arguably, chkconfig should throw an error.

Comment 3 Bill Nottingham 2009-01-22 19:23:13 UTC
http://git.fedorahosted.org/git/?p=chkconfig.git;a=commitdiff;h=e009cf65c2a44c027c970f4012e0ea7ad40ef65f

Will show up in rawhide at some point. lcdproc still needs fixed, of course.

Comment 4 Eric Sandeen 2009-01-22 19:37:15 UTC
thanks, will file an lcdproc bug too.

-Eric