Contents


On-line Guides
All Guides
Linux for Beginners
Office Productivity
Linux Installation
Linux Security
Linux Utilities
Linux Virtualization
Linux Kernel
System/Network Admin
Programming
Scripting Languages
Development Tools
Web Development
GUI Toolkits/Desktop
Databases
Mail Systems

How To Guides
General How To Guides
JavaScript How To
HTML How To
Problem Solutions

 

 

How to dynamically change the runlevel of Linux system without rebooting


How to dynamically change the runlevel of Linux system without rebooting

The current run level of the system can be changed dynamically without the necessity to reboot the system. This can be achieved using the telinit command with the required runlevel as the command line argument.

For example you can switch into single user mode by running the following command:

   
telinit S

The administrator could subsequently return to full multi-user, X graphical interface mode either by entering:

   
telinit 5

If you have made changes to the /etc/inittab file to change the default runlevel and want to change the system to that new default you can do so by using the telinit with the q command-line option:

   
telinit q

It is important to note that telinit can only be run as root and even then only from the system console. For a detailed description of Runlevels and the /etc/inittab file visit Linuxtopia's "
How to change the default run level of a RedHat 9.0 or Fedora Core Linux system" How To Guide.

 
 
  © Copyright 2005-2008 Linuxtopia. All Rights Reserved.