You are not logged in.
Pages: 1
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
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
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
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
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
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
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
Pages: 1