nixCraft Linux Forum

nixCraft

Linux / UNIX 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

Linux answers from nixCraft.


Networking, Firewalls and Security No it's not a secret. Talk about firewalls and security issues.

Reply

 

LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 13-02-2007, 02:05 PM
Junior Member
User
 
Join Date: Feb 2007
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
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
  #2 (permalink)  
Old 15-02-2007, 08:34 AM
nixcraft's Avatar
Never say die
User
 
Join Date: Jan 2005
Location: BIOS
OS: RHEL
Scripting language: Bash and Python
Posts: 2,710
Thanks: 11
Thanked 246 Times in 184 Posts
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 Gite
Linux Evangelist
Be proud RHEL user, and let the world know about your enterprise choices! Join RedHat user group.
Always use CODE tags for posting system output and commands!
Do you run a Linux? Let's face it, you need help
Reply With Quote
  #3 (permalink)  
Old 16-02-2007, 07:23 PM
Junior Member
User
 
Join Date: Feb 2007
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
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 21-02-2007, 08:59 AM
nixcraft's Avatar
Never say die
User
 
Join Date: Jan 2005
Location: BIOS
OS: RHEL
Scripting language: Bash and Python
Posts: 2,710
Thanks: 11
Thanked 246 Times in 184 Posts
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 Gite
Linux Evangelist
Be proud RHEL user, and let the world know about your enterprise choices! Join RedHat user group.
Always use CODE tags for posting system output and commands!
Do you run a Linux? Let's face it, you need help
Reply With Quote
  #5 (permalink)  
Old 06-03-2007, 08:21 PM
B!n@ry's Avatar
Senior Member
User
 
Join Date: Dec 2006
Location: B!n@ry-z0ne
OS: Ojuba 3
Posts: 129
Thanks: 0
Thanked 0 Times in 0 Posts
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


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 Off


Similar Threads

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


All times are GMT +5.5. The time now is 08:53 PM.


Powered by vBulletin® Version 3.8.5 - Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.2
©2005-2010 nixCraft. All rights reserved

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 37 38