[systemd-devel] [PATCH] core: make parsing of chkconfig headers conditional

Michael Biebl mbiebl at gmail.com
Mon Mar 24 09:37:29 PDT 2014


2014-03-24 17:21 GMT+01:00 Lennart Poettering <lennart at poettering.net>:
> On Mon, 24.03.14 17:17, Michael Biebl (mbiebl at gmail.com) wrote:
>
>>
>> 2014-03-24 17:11 GMT+01:00 Lennart Poettering <lennart at poettering.net>:
>> > On Mon, 24.03.14 14:00, Michael Biebl (mbiebl at gmail.com) wrote:
>> >
>> >> Don't parse Red Hat style chkconfig headers if chkconfig support is
>> >> disabled via --disable-chkconfig.
>> >
>> > Hmm, I am not overly hapy with adding even more ifdefs to the
>> > code... i'd rather see less ifdefs...
>>
>> I can rip out the chkconfig parsing completely, if that is what you
>> want.
>
> Nah, we need to keep it in for fedora/rhel I figure, for now.

So you're saying as long as it benefits Fedora, having ifdefs is fine,
but not for other distros?

>>
>> > Thus, what's the rationale here? Why shouldn't the chkconfig header be
>> > read when it exists? I mean, stuff like the description string really
>> > shouldn't hurt on debian either, should an init script carry the
>> > header...
>>
>> The reasoning here is, that on distributions which don't use chkconfig
>> (like Debian), there might be SysV init scripts with chkconfig headers
>> which are completely untested and actually break the boot process. See
>> [0] for an example.
>> We really shouldn't parse chkconfig headers on distros which don't
>> support chkconfig and decided to build systemd with
>> --disable-chkconfig.
>
> Well, but we are a lot more dependent on correct headers than other
> parsers anyway...

we = Fedora? Don't quite get your point in this context.

 For example, the LSB deps have traditionally been much
> less accurately followed than they are now...

Regarding Debian, the LSB headers are the only ones which are actually
tested and accurate.
If there are chkconfig headers in the init scripts there are most
likely leftovers and are completely untested.


-- 
Why is it that all of the instruments seeking intelligent life in the
universe are pointed away from Earth?


More information about the systemd-devel mailing list