Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I need to add an additional title to my grub.conf file and after OS boot I need start different services depends on it

What the better way to do that?

share|improve this question
up vote 1 down vote accepted

Use runlevel 4 (normally unused) and pass 4 on the kernel command line to boot into it.

share|improve this answer
But all services are depends on runlevel it may be a risky and it will give me only two options. Is it possible to pass a string from the grub? Maybe to use some unused kernel parameter or something like that? – Dima Mar 31 '11 at 21:45
You can pass whatever you like and parse it out of /proc/cmdline after, but that is a lot more work. – Ignacio Vazquez-Abrams Mar 31 '11 at 21:46
Does kernel will ignore any unknown parameters? – Dima Mar 31 '11 at 22:24

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.