Bug 481198 - Initscript metadata parsing bug?
Summary: Initscript metadata parsing bug?
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: chkconfig
Version: 10
Hardware: All
OS: Linux
low
medium
Target Milestone: ---
Assignee: Bill Nottingham
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: 481212
TreeView+ depends on / blocked
 
Reported: 2009-01-22 18:02 UTC by Eric Sandeen
Modified: 2014-03-17 03:17 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
: 481212 (view as bug list)
Environment:
Last Closed: 2009-01-22 19:23:13 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

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


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