0

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?

EEAA
  • 108,414
  • 18
  • 172
  • 242
Dima
  • 485
  • 3
  • 7
  • 15

1 Answers1

1

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

Ignacio Vazquez-Abrams
  • 45,019
  • 5
  • 78
  • 84
  • 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