Linux / UNIX Tech Support Forum
This is a discussion on Runlevel in Linux within the Networking, Firewalls and Security forums, part of the Mastering Servers category; Hi, Can someone advice me, what parameter I need to customized in kernel to ask runlevel at the time of ...
|
|||||||
| Networking, Firewalls and Security No it's not a secret. Talk about firewalls and security issues. |
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
|
|||
|
Hi,
Can someone advice me, what parameter I need to customized in kernel to ask runlevel at the time of system is getting up? i.e System MUST ask me in which runlevel, I want to work. ______ Satya |
| Sponsored Links | ||
|
|
|
||||
|
Most Linux distro don't ask that question but you can pass parameter at grub or lilo boot loader to setup default runlevel using /etc/inittab file. See following urls for more info
Linux Changing Run Levels | nixCraft Let me know if you need any further help
__________________
Vivek Gite Linux Evangelist |
|
|||
|
Still seaching for right answer, my question is that how I can pass the run-level parameter ( 0,1,2,3,4,5,6) at the system starting time.
i.e Echoing message like 'Enter run-level to boot' and if I press 2, it should start booting in 2 runlevel. I do not want to physically modify the inittab file for run level.I want, this file should get the run-level at the runtime by accepting the parameter from user. |
|
||||
|
There is no such thing exists, however you can write your own script or modify existing script that reads default from inittab file. You can find this script at /etc/rc file. Now you need to modify this script to give prompt and then set to that runlevel.
Hope this helps
__________________
Vivek Gite Linux Evangelist |
![]() |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) |
|
| Thread Tools | |
| Display Modes | |
|
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Ubuntu Set Default Runlevel /etc/inittab | lacloai | Linux software | 8 | 25-09-2009 12:15 PM |
| Ubuntu Linux runlevel and its meaning | Linux software | 1 | 20-07-2006 11:28 PM | |