inittab vs. /etc/sysconfig/init for runlevel 3/5

Farkas Levente lfarkas at bppiac.hu
Fri Apr 4 19:35:20 UTC 2008


Bill Nottingham wrote:
> Bill Nottingham (notting at redhat.com) said: 
>> With the switch to upstart, we obviated the need for /etc/inittab (upstart
>> does not need it, nor read it.)
>>
>> Initially, we added a quick hack that read /etc/inittab solely to determine
>> the default runlevel. Based on a bug I filed (#432384), we changed that so
>> that the key for runlevel 3 vs. runlevel 5 is GRAPHICAL in /etc/sysconfig/init,
>> and we'e planning to just remove the inittab file to make things more obvious.
>>
>> I'm open to better ideas, though - should we ship a trimmed inittab that
>> contains *only* the initdefault line? Should we introduce a new configuration
>> flag somewhere else? Does it really matter in the long run?
> 
> OK, upon further consideration:
> 
> - We're still supporting SysV runlevels in F9
> - Given that, we need to support people who customize it beyond 3 and 5
> - Rather than invent a new file/key for that (as GRAPHICAL= doesn't cut it), it
> probably makes sense to just leave it in inittab for now, and revisit when we've
> done more migration
> 
> Hence, I'll flip things back in event-compat-sysv, and anaconda - the 'id:'
> line in inittab will be read for the default runlevel. (If it's not there,
> it will default to 3.)
> 
> initscripts with an appropriately neutered inittab with commentary will
> show up at some point today. man pages for upstart event syntax will
> follow.
> 
> All clear as mud?

what happened with the respawn lines?
is there anything similar in upstart? with normal services in init.d/ 
it's not possible.

-- 
   Levente                               "Si vis pacem para bellum!"




More information about the fedora-devel-list mailing list