Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

I have Ubuntu lucid on my home computer. Today I was experimenting with runlevels and I couldn't figure out how to change the default run level of Ubuntu. I can do that using /etc/inittab on Debian 504 but that file is not there in Ubuntu. I have searched on the web but couldn't figure out the answer.

Thanks in advance.

share|improve this question

2 Answers 2

up vote 10 down vote accepted

As per man inittab:

The  /etc/inittab  file was the configuration file used by the original
System V init(8) daemon.

The Upstart init(8) daemon does not use this file,  and  instead  reads
its  configuration  from  files  in  /etc/init.   See  init(5) for more
details.

If you look into /etc/init/rc-sysinit.conf you should find a line similar to this:

# Default runlevel, this may be overriden on the kernel command-line
# or by faking an old /etc/inittab entry
env DEFAULT_RUNLEVEL=2

Either change this or use manually generated /etc/inittab.

share|improve this answer

Ubuntu uses the upstart init daemon which by default boots to (an equivalent of?) runlevel 2. If you want to change the default runlevel then create an /etc/inittab with an initdefault entry for the runlevel you want.

:id:3:initdefault:

would bring the system up to runlevel 3.

An article on it here

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.