Quote:
Originally Posted by hex1a4
Hi,
If you create your own /etc/inittab file, Ubuntu will honour it.
To change your runlevels the Ubuntu way look in /etc/init.d/ which contains startup scripts. Then look in /etc/rc#.d/ which contains symlinks to scripts in /etc/init.d/. The name of the symlinks determines what will be started/stopped and in what order. Look in the README file in any of the /etc/rc#.d/ directories for details.
The # in the /etc/rc#.d/ is the runlevel number.
To stop GDM from loading in runlevel 2 (Ubuntu default runlevel) rename /etc/rc2.d/S30gdm to /etc/rc2.d/K70gdm
The S tells Ubuntu to start the process, and the K tells Ubuntu to kill it. The number is the order in which it should be started/stopped.
Have a look at the man page for update-rc.d which can be used to create/update/remove the init script symlinks for you.
EDIT: You can also install the Boot-Up Manager (BUM) which is a graphical tool to configure runlevels. It's in the repositories.
|
The last poster, Thank You. I saw you had no thank you's and 64 posts. I am a new Ubuntu user and learned alot from you post.
Correct me if I am wrong but... in the System5 rcX.d directories, S is for start and K is for Stop..KILL. To be used in Startup and Stop (Shutdown, run level change). (&^(^*(&%$*$%$#@%$#$^*^&^(&*^(&^%%$&@#
I am again wrong, there are no K files in Ubuntu... rc2.d, butt.. There are K files in rc1 and rc2.d.
SXXX files are done in order. They should all have a "stop" routine.
Do not rename your Startup files to KXXStuff.
Rename your startup files to sXXStuff. Only the SXXXfiles should be started.
If Ubuntu does not follow this requirement...!!! ??? .
Or maybe KXXXfiles are the Kernel? I am so confused...
George