Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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
add comment

1 Answer

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
1  
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
add comment

Your Answer

 
discard

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.