Linux change the runlevel for a server without rebooting
Q. How do I change the runlevel for a Linux server without rebooting my server? I am using Gentoo Linux.
A. Almost all Linux distribution use init program to change runlevel. init is the parent of all processes. Its primary role is to create processes from a script stored in the file
/etc/inittab . This file usually has entries which cause init to spawn gettys on each line that users can log in. It also controls autonomous processes required by any particular system.
To change runlevel from 3 to 1 you need to type command as follows:
# init 1
OR
$ sudo init 1
Where 1 is runlevel number, other possible runlevel values are:
=> 0 - Shutdown server
=> 1 - Take server to single-user mode
=> 2 - Start X windows (used by Debian)
=> 3 - Full multi-user text mode
=> 5 - Start X windows
=> 6 - Reboot server
E-mail this to a friend
Printable version
Related Other Helpful FAQs:
- Linux define the runlevel and determine which runlevel my system is currently in
- How to Linux disable X Windows KDE during system boot
- How to: Linux display remote X application over telnet session
- Debian or Ubuntu Linux runlevel configuration tool to start service
- update-rc.d like command on Redhat Enterprise / CentOS Linux
Leave a Reply
We encourage your comments, and suggestions. But please stay on topic, be polite, and avoid spam. Thank you very much for stopping by our site!


Recent Comments
Yesterday ~ 3 Comments
Yesterday ~ 2 Comments
10/14/2008 03:10 pm (2 days ago) ~ 3 Comments
10/14/2008 01:36 pm (2 days ago) ~ 3 Comments
10/14/2008 10:04 am (2 days ago) ~ 1 Comment