- Forums
- Linux Hosting
- Permanently Changing The Runlevel Linux
permanently changing the runlevel linux - you can permantelty change the server's runlevel by editing the ile. this file contains a linc like this [1347], Last Updated: Mon Jun 24, 2024
Downther
Sat Feb 27, 2010
0 Comments
377 Visits
you can permantelty change the server's runlevel by editing the
/etc/inittab file. this file contains a linc like this:
id:3:initdefault:
this example shows a system configured for runlevel 3. to modify it, you can change the 3 to whatever value you want. after making the changes, you can make ther server to switch immediately to the new runlevel by running telinit. you can send this command for example:
telinit Q
this command will cause the server to read your chagnes directly, or you can use the runlevel in place of Q.
NOTE: do not et the default runlevel to 0 or 6 since this will cause the system to shutdown or reboot as soon as it boots, going into a loop