inittab directory

Asked by aneesh

In ubuntu 9.10 I can't see the /etc/inittab directory , what is the alternate for it ?

Question information

Language:
English Edit question
Status:
Answered
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
gzarkadas (gzarkadas) said :
#1

There is no /etc/inittab in Ubuntu since Edgy. Init has been replaced by Upstart (an event-driven initialisation application). The relevant files are now in /etc/event.d and they are upstart scripts. There are also .conf files in /etc/init.

For details about upstart, see http://upstart.ubuntu.com/

Revision history for this message
aneesh (aneesholv) said :
#2

Can you also say what is the difference between /etc/event.d directory
and /etc/rc.local file . Does both are doing same job ?
.

On Sun, Aug 29, 2010 at 1:17 PM, gzarkadas <
<email address hidden>> wrote:

> Your question #123112 on Ubuntu changed:
> https://answers.launchpad.net/ubuntu/+question/123112
>
> Status: Open => Answered
>
> gzarkadas proposed the following answer:
> There is no /etc/inittab in Ubuntu since Edgy. Init has been replaced by
> Upstart (an event-driven initialisation application). The relevant files
> are now in /etc/event.d and they are upstart scripts. There are also
> .conf files in /etc/init.
>
> For details about upstart, see http://upstart.ubuntu.com/
>
> --
> If this answers your question, please go to the following page to let us
> know that it is solved:
> https://answers.launchpad.net/ubuntu/+question/123112/+confirm?answer_id=0
>
> If you still need help, you can reply to this email or go to the
> following page to enter your feedback:
> https://answers.launchpad.net/ubuntu/+question/123112
>
> You received this question notification because you are a direct
> subscriber of the question.
>

--
------with regards,

                       Aneesh.T.V
                       Mob:9544067525

Revision history for this message
gzarkadas (gzarkadas) said :
#3

Files in /etc/event.d are event specifications; they declare the events that start/stop them and the code to run. /etc/rc.local is a place for the local admin to insert some code that executes when the SysV runlevel scripts are executed (during startup and during runlevel changes).

Use rc.local when you just want to append some specific code to system initialisation (that is, most of the time).

Use a new/modified event at /etc/event.d when you want to respond in a new way to a specific event (that is, infequently).

Can you help with this problem?

Provide an answer of your own, or ask aneesh for more information if necessary.

To post a message you must log in.