nixCraft Linux Forum

nixCraft

Linux Tech Support Forum

Runlevel in Linux

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 ...


Go Back   nixCraft Linux Forum > Mastering Servers > Networking, Firewalls and Security

Register FAQ Members List Calendar Forgotten your password? Mark Forums Read
  #1 (permalink)  
Old 02-13-2007, 03:05 PM
Junior Member
 
Join Date: Feb 2007
Posts: 3
Rep Power: 0
009satya
Default Runlevel in Linux

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
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 02-15-2007, 09:34 AM
nixcraft's Avatar
Never say die
User
 
Join Date: Jan 2005
Location: BIOS
My distro: Ubuntu
Posts: 1,060
Rep Power: 10
nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute
Default

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 | My personal blog
Linux Evangelist
Play hard stay cool
Reply With Quote
  #3 (permalink)  
Old 02-16-2007, 08:23 PM
Junior Member
 
Join Date: Feb 2007
Posts: 3
Rep Power: 0
009satya
Default

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.
Reply With Quote
  #4 (permalink)  
Old 02-21-2007, 09:59 AM
nixcraft's Avatar
Never say die
User
 
Join Date: Jan 2005
Location: BIOS
My distro: Ubuntu
Posts: 1,060
Rep Power: 10
nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute
Default

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 | My personal blog
Linux Evangelist
Play hard stay cool
Reply With Quote
  #5 (permalink)  
Old 03-06-2007, 09:21 PM
Senior Member
User
 
Join Date: Dec 2006
Location: /B!n@ry
My distro: openSuSE 10.2
Posts: 127
Rep Power: 0
B!n@ry
Send a message via MSN to B!n@ry
Default

I think in this case you need to edit the inittab script and add an echo and a read message to do that job for you, but why do you need such a thing were actually u shall be either working under RUNLEVEL 3 or 5 ???
__________________
LivE Free 0r DiE
L!nux rul3z aLL
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads

Thread Thread Starter Forum Replies Last Post
Ubuntu Set Default Runlevel /etc/inittab lacloai Linux software 6 11-18-2008 06:42 AM
Ubuntu Linux runlevel and its meaning Linux software 1 07-21-2006 12:28 AM


All times are GMT +5.5. The time now is 04:54 PM.


Powered by vBulletin® Version 3.7.4 - Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36