where is etc inittab equivalent ?

Tom H tomh0665 at gmail.com
Sun Sep 5 12:52:01 UTC 2010


On Sun, Sep 5, 2010 at 7:13 AM, Tapas Mishra <mightydreams at gmail.com> wrote:
> I searched a file /etc/inittab in Ubuntu 10.04 bit bit.
> It was not there.
> On some link found Ubuntu stopped using that 3 years before.
>
> Searching some blogs forums found
> /etc/events.d
> above directory was missing on my system.
>
> checked /etc/rc.local
> did not found what I was looking at.
> Also looked at /etc/init.d/rc.local
> but could not find the desired entry.
>
> What I am trying to find out is how do Ubuntu decides which run level
> is default?
> Which file contains that entry?

The upstart script directory was /etc/events.d until Karmic (or Lucid?
Sorry, I've forgotten!), when it was changed to /etc/init.

The runlevel is determined by /etc/init/rc-sysinit.conf by
"DEFAULT_RUNLEVEL" or, if you have an inittab (that you have created
or possibly inherited through successive upgrades) by the standard
"initdefault". However, Ubuntu has inherited from Debian the policy
that runlevels 2-5 are the same and that the default is runlevel 2, if
you are trying to change the default to the Red Hat equivalent of 3,
you will have to modify the files in /etc/init (and possibly
/etc/init.d if you want to disable some non-upstart init scripts) or
create an entry in grub's 40_custom with "text" appended to the linux
line.




More information about the ubuntu-users mailing list