Talk:HOWTO create a run level

From Gentoo Linux Wiki

Jump to: navigation, search
Isn't it necessary to map one of the conventional (0-6) runlevels to this newly created runlevel via /etc/inittab?

If you want to, you can alter the inittab file to make sure that you boot with your new runlevel.

To change the default runlevel alter this line in /etc/inittab

 id:5:initdefault:

The number 5 is the runlevel that will be started. Besides that, you also have to define what exactly to do on this runlevel. This can be achieved by altering following line

 l5:5:wait:/sbin/rc your_runlevel

Some remarks: runlevels 0,1 and 6 are not to be used by yourself. 0 is for shutdown, 1 for single user mode and 6 for reboot.
Also, there is no such thing as dependencies in runlevels.. (too bad imho). So, if your custom runlevel depends on some services in the default runlevel, you will have to add these to your own runlevel aswel.

I hope this gives an answer to your question ;)


What's the LILO equivalent?

Add the append line to your lilo.conf or just add the kernel option to the existing one.
append="softlevel=myrunlevel vga=794"
Personal tools