Linux utilizes what is called "runlevels". A runlevel is a software configuration of the system that allows only a selected group of processes to exist. Init can run the system in one of eight runlevels. These runlevels are 0-6 and S or s. The system runs in only one of these runlevels at a time. Typically these runlevels are used for different purposes. Runlevels 0, 1, and 6 are reserved. For Redhat Linux version 6, the runlevels are:
0 | - | halt | ||
1 | - | Single user mode | ||
2 | - | Multiuser, without NFS (The same as 3, if you don't have networking) | ||
3 | - | Full multiuser mode | ||
4 | - | unused | ||
5 | - | X11 | ||
6 | - | Reboot |
[root@test]# cd /etc
[root@test etc]#ls
Here you will find a file inittab. Open that file in a vi editor.
[root@test etc]#vi inittab
Edit following line in inittab file. You can replace 3 with any other run-level you wish from 0 - 6.
id: 3 :initdefault
Save the file and reboot.
Be careful setting the run-level to 6. This will make your system keep rebooting automatically.
Thats All,
No comments:
Post a Comment