* Re: [gentoo-user] Gentoo Runlevels while booting
2005-12-21 14:30 [gentoo-user] Gentoo Runlevels while booting Ryan Viljoen
@ 2005-12-21 14:41 ` John Jolet
2005-12-21 14:52 ` Richard Fish
2005-12-21 15:07 ` Martins Steinbergs
2005-12-21 14:46 ` Dirk Heinrichs
` (2 subsequent siblings)
3 siblings, 2 replies; 7+ messages in thread
From: John Jolet @ 2005-12-21 14:41 UTC (permalink / raw
To: gentoo-user
On Dec 21, 2005, at 8:30 AM, Ryan Viljoen wrote:
> I have been setting up a server with SuSe on it (dont ask why SuSe...
> the developers of one of the apps required will only support SuSe).
>
> Anyway I noticed that when SuSe boots, after its gone through the boot
> runlevel it switches to runlevel 5 and loads up kdm while completing
> runlevel 3. Now this is great cause you can login and such assuming
> you dont have any network dependent login services (NIS and NFS
> shares).
>
> So I was wondering if this was possible with Gentoo. Its not as simple
> as adding xdm to the boot runlevel. dont worry I tried...
>
> Any thoughts?
>
it's loading things in parallel. I believe I saw something on this
list last week about gentoo being able to do that...seems it was
masked, though...
> --
> Ryan Viljoen Bsc(Eng) (Electrical)
>
> "When you say "I wrote a program that crashed Windows", people just
> stare at you blankly and say "Hey, I got those with the system, for
> free". - Linus Torvalds, 1995
>
> --
> gentoo-user@gentoo.org mailing list
>
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [gentoo-user] Gentoo Runlevels while booting
2005-12-21 14:41 ` John Jolet
@ 2005-12-21 14:52 ` Richard Fish
2005-12-21 15:07 ` Martins Steinbergs
1 sibling, 0 replies; 7+ messages in thread
From: Richard Fish @ 2005-12-21 14:52 UTC (permalink / raw
To: gentoo-user
On 12/21/05, John Jolet <john@jolet.net> wrote:
> it's loading things in parallel. I believe I saw something on this
> list last week about gentoo being able to do that...seems it was
> masked, though...
You can start things in parallel on Gentoo as well by setting
RC_PARALLEL_STARTUP in /etc/conf.d/rc.
However this does not affect the display manager. Gentoo will only
start the display manager after all other init services have been run.
See the comments in /etc/init.d/xdm, and the /etc/inittab file.
-Richard
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [gentoo-user] Gentoo Runlevels while booting
2005-12-21 14:41 ` John Jolet
2005-12-21 14:52 ` Richard Fish
@ 2005-12-21 15:07 ` Martins Steinbergs
1 sibling, 0 replies; 7+ messages in thread
From: Martins Steinbergs @ 2005-12-21 15:07 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 1258 bytes --]
On Wednesday 21 December 2005 16:41, John Jolet wrote:
> On Dec 21, 2005, at 8:30 AM, Ryan Viljoen wrote:
> > I have been setting up a server with SuSe on it (dont ask why SuSe...
> > the developers of one of the apps required will only support SuSe).
> >
> > Anyway I noticed that when SuSe boots, after its gone through the boot
> > runlevel it switches to runlevel 5 and loads up kdm while completing
> > runlevel 3. Now this is great cause you can login and such assuming
> > you dont have any network dependent login services (NIS and NFS
> > shares).
> >
> > So I was wondering if this was possible with Gentoo. Its not as simple
> > as adding xdm to the boot runlevel. dont worry I tried...
> >
> > Any thoughts?
>
> it's loading things in parallel. I believe I saw something on this
> list last week about gentoo being able to do that...seems it was
> masked, though...
must be this
# /etc/conf.d/rc: Global config file for the Gentoo RC System
# Set to "yes" if you want the rc system to try and start services
# in parallel for a slight speed improvement.
RC_PARALLEL_STARTUP="no"
--
Linux 2.6.14-gentoo-r5 AMD Athlon(tm) 64 Processor 3200+
17:03:45 up 6:23, 5 users, load average: 0.45, 0.21, 0.28
[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [gentoo-user] Gentoo Runlevels while booting
2005-12-21 14:30 [gentoo-user] Gentoo Runlevels while booting Ryan Viljoen
2005-12-21 14:41 ` John Jolet
@ 2005-12-21 14:46 ` Dirk Heinrichs
2005-12-21 14:48 ` Richard Fish
2005-12-21 21:44 ` Uwe Thiem
3 siblings, 0 replies; 7+ messages in thread
From: Dirk Heinrichs @ 2005-12-21 14:46 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 1334 bytes --]
Am Mittwoch, 21. Dezember 2005 15:30 schrieb ext Ryan Viljoen:
> Anyway I noticed that when SuSe boots, after its gone through the boot
> runlevel it switches to runlevel 5 and loads up kdm while completing
> runlevel 3. Now this is great cause you can login and such assuming
> you dont have any network dependent login services (NIS and NFS
> shares).
>
> So I was wondering if this was possible with Gentoo. Its not as simple
> as adding xdm to the boot runlevel. dont worry I tried...
Gentoo extends init's runlevel concept with its own concept, called
softlevels. You can create as many softlevels as you like/need.
Just create an new directory for your runlevel in /etc/runlevels, populate
it with the services you want to start in this runlevel (rc-update add
myservice myrunlevel) and update your bootloader config so that you can
select the desired runlevel at boot time, i.e. for grub you would add
"softlevel=myrunlevel" to the "kernel" line.
HTH...
Dirk
--
Dirk Heinrichs | Tel: +49 (0)162 234 3408
Configuration Manager | Fax: +49 (0)211 47068 111
Capgemini Deutschland | Mail: dirk.heinrichs@capgemini.com
Hambornerstraße 55 | Web: http://www.capgemini.com
D-40472 Düsseldorf | ICQ#: 110037733
GPG Public Key C2E467BB | Keyserver: www.keyserver.net
[-- Attachment #2: Type: application/pgp-signature, Size: 190 bytes --]
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [gentoo-user] Gentoo Runlevels while booting
2005-12-21 14:30 [gentoo-user] Gentoo Runlevels while booting Ryan Viljoen
2005-12-21 14:41 ` John Jolet
2005-12-21 14:46 ` Dirk Heinrichs
@ 2005-12-21 14:48 ` Richard Fish
2005-12-21 21:44 ` Uwe Thiem
3 siblings, 0 replies; 7+ messages in thread
From: Richard Fish @ 2005-12-21 14:48 UTC (permalink / raw
To: gentoo-user
On 12/21/05, Ryan Viljoen <ravilj@gmail.com> wrote:
> So I was wondering if this was possible with Gentoo. Its not as simple
> as adding xdm to the boot runlevel. dont worry I tried...
The Gentoo xdm script waits until all other init services
(particularly getty sessions) are started, to allow for those display
managers that don't know what tty to run on, and may cause a conflict
and a dead keyboard. See the comments in /etc/init.d/xdm.
However, if your display manager (in my case kdm) is properly
configured, and doesn't conflict with /etc/inittab, you can start the
display manager much earlier in the startup sequence, but you have to
make your own init script for that. This is what I did, based on the
xdm init script:
-Richard
#!/sbin/runscript
# Derived from /etc/init.d/xdm, which is Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License, v2
# Start X Font Server before X
depend() {
use xfs hotplug
}
source /etc/profile.env
cmdline_opt() {
if [[ "$#" -ne 1 ]]; then
return 1
fi
for opt in $(</proc/cmdline); do
case ${opt} in
${1}) eval ${1}="true" ;;
esac
done
}
nox() {
# Don't start X if we were passed 'nox' at boot (#83680)
cmdline_opt nox
if [[ "$?" -ne 0 ]]; then
return 1
fi
if [[ -n "${nox}" ]]; then
return 0
else
return 1
fi
}
start() {
if nox; then
einfo "Skipping ${EXE}, received 'nox'"
else
ebegin "Starting kdm"
start-stop-daemon --start --quiet --exec $(which kdm) \
--pidfile /var/run/kdm.pid &>/dev/null
eend $? "Error starting kdm"
fi
}
stop() {
local retval=0
local curvt="$(fgconsole)"
ebegin "Stopping kdm"
start-stop-daemon --stop --quiet --exec $(which kdm) \
--pidfile /var/run/kdm.pid &>/dev/null
retval=$?
chvt "${curvt}" &>/dev/null
eend ${retval} "Error stopping kdm"
return ${retval}
}
# vim:ts=4
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [gentoo-user] Gentoo Runlevels while booting
2005-12-21 14:30 [gentoo-user] Gentoo Runlevels while booting Ryan Viljoen
` (2 preceding siblings ...)
2005-12-21 14:48 ` Richard Fish
@ 2005-12-21 21:44 ` Uwe Thiem
3 siblings, 0 replies; 7+ messages in thread
From: Uwe Thiem @ 2005-12-21 21:44 UTC (permalink / raw
To: gentoo-user
On 21 December 2005 16:30, Ryan Viljoen wrote:
> I have been setting up a server with SuSe on it (dont ask why SuSe...
> the developers of one of the apps required will only support SuSe).
>
> Anyway I noticed that when SuSe boots, after its gone through the boot
> runlevel it switches to runlevel 5 and loads up kdm while completing
> runlevel 3. Now this is great cause you can login and such assuming
> you dont have any network dependent login services (NIS and NFS
> shares).
>
> So I was wondering if this was possible with Gentoo. Its not as simple
> as adding xdm to the boot runlevel. dont worry I tried...
>
> Any thoughts?
Look at /etc/inittab and /etc/runlevels. You can define any customised
runlevel.
Uwe
--
Unix is sexy:
who | grep -i blonde | date
cd ~; unzip; touch; strip; finger
mount; gasp; yes; uptime; umount
sleep
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 7+ messages in thread