You are not logged in.

#1 2009-07-09 07:38:45

heimdal
Member
Registered: 2009-06-25
Posts: 27

Running Daemons through Grub

I am sure this has been answered before, but a quick google search provided nothing really. I would like to know how to run daemons through Grub. My idea is to have a Arch Linux run with SLiM and one that runs at command line. I am not sure how to tell Grub to do this. Can someone please help me out real quick. sorry for the noobish question

Offline

#2 2009-07-09 07:41:53

Solid1986Snake
Member
Registered: 2007-06-18
Posts: 258

Re: Running Daemons through Grub

Sorry, I do not have a real solution too,

but you could create different runlevels... you can tell grub then in which runlevel it should boot...

Offline

#3 2009-07-09 07:44:49

heimdal
Member
Registered: 2009-06-25
Posts: 27

Re: Running Daemons through Grub

Solid1986Snake wrote:

Sorry, I do not have a real solution too,

but you could create different runlevels... you can tell grub then in which runlevel it should boot...

can you explain how one does that?

Offline

#4 2009-07-09 08:01:36

fumbles
Member
Registered: 2006-12-22
Posts: 246

Re: Running Daemons through Grub

In /etc/initab

...
# Boot to console
id:3:initdefault:
...
x:5:respawn:/usr/bin/slim >& /dev/null

menu.lst

title  Arch Linux - Console
root   (hd0,0)
kernel /vmlinuz26 root=/dev/disk/by-uuid/[abc] ro vga=795 
initrd /kernel26.img

title  Arch Linux - Slim
root   (hd0,0)
kernel /vmlinuz26 root=/dev/disk/by-uuid/[abc] ro vga=795 5
initrd /kernel26.img

Note the '5' on the end of the second one.
(I did test this just to make sure...)

Last edited by fumbles (2009-07-09 08:03:50)

Offline

#5 2009-07-09 08:14:46

steve_v
Member
Registered: 2006-02-11
Posts: 80

Re: Running Daemons through Grub

Also ensure slim is not in the DAEMONS array in /etc/rc.conf
This will handle starting / not starting a graphical login manager, if you want to control daemons too look here http://wiki.archlinux.org/index.php/Adding_Runlevels

Steve.

Offline

#6 2009-07-09 09:36:52

Solid1986Snake
Member
Registered: 2007-06-18
Posts: 258

Re: Running Daemons through Grub

fumbles wrote:

In /etc/initab

...
# Boot to console
id:3:initdefault:
...
x:5:respawn:/usr/bin/slim >& /dev/null

menu.lst

title  Arch Linux - Console
root   (hd0,0)
kernel /vmlinuz26 root=/dev/disk/by-uuid/[abc] ro vga=795 
initrd /kernel26.img

title  Arch Linux - Slim
root   (hd0,0)
kernel /vmlinuz26 root=/dev/disk/by-uuid/[abc] ro vga=795 5
initrd /kernel26.img

Note the '5' on the end of the second one.
(I did test this just to make sure...)

And just a little addition: "3" should be the right for command-line only...

Offline

#7 2009-07-09 10:14:36

fumbles
Member
Registered: 2006-12-22
Posts: 246

Re: Running Daemons through Grub

Solid1986Snake wrote:
fumbles wrote:

In /etc/initab

...
# Boot to console
id:3:initdefault:
...
x:5:respawn:/usr/bin/slim >& /dev/null

menu.lst

title  Arch Linux - Console
root   (hd0,0)
kernel /vmlinuz26 root=/dev/disk/by-uuid/[abc] ro vga=795 
initrd /kernel26.img

title  Arch Linux - Slim
root   (hd0,0)
kernel /vmlinuz26 root=/dev/disk/by-uuid/[abc] ro vga=795 5
initrd /kernel26.img

Note the '5' on the end of the second one.
(I did test this just to make sure...)

And just a little addition: "3" should be the right for command-line only...

However you don't need to put a '3' in there because it is set as default (I'm sure that's what you mean, I just wanted to clarify that point).

Offline

Board footer

Powered by FluxBB